So, what happens if I donÂt close the sender and the session but I close the 
connection ?  

As Adrian says, after sending a message the right thing should be :


  | finally 
  | {
  |   try{
  |     if( sender != null )  sender.close(); 
  |     if( session != null )  session.close(); 
  |     if( connection != null ) connection.close();  
  |   } catch( Exception e) {}; 
  | }
  | 

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

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


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to