Hi, there: 

I have an mbean deployed on jboss2.4.8 (lib/ext), which keeps getting datasource, 
dataconnection by calling: 
DataSource ds = (DataSource)initialContext.lookup("java:/DefaultDS"); 
and 
con = ds.getConnection(); 
........
if(con != null) con.close(); 

It seems that whenever I call "con.close()", it gives me the warning information like: 

XAConnectionImpl: [EMAIL PROTECTED] has no current tx! 

however, I tested the same code inside a stateless session bean, I didn't see that 
warning. Seems only happens on MBean. 

Could anyone please tell me: 
1. what does that warning information mean? 
2. what can I do to get rid of this warning? (I can filter that warning from my log 
file by changing log4j.properties, but, just doubt if anything wrong in my code). 

Thanks a lot 

David Chen 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847101#3847101

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847101


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to