my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes Closing the session !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Closing the session !!!" Watch "Closing the session !!!" New topic
Author

Closing the session !!!

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 257
Hi All,
Does closing the session in JMS not close other objects such as publisher, receiver, response destination etc automatically ???. Do we have to close them explicitly ?. How do I verify this.? Please Help !!!
Aum Tao
Ranch Hand

Joined: Feb 14, 2006
Posts: 210
No, you don't need to call close on the producer and consumer of a closed session. However, it there is already a message listener or receive call in progress, the call will be in a blocking state.


SCJP 1.4 85%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Closing the session !!!
 
Similar Threads
Getting this error while doing an select Query
session closed
Statement, ResultSet
Writting a stdout of to a file in Java
Hibernate, ResultSet and PrepareStatement