aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes Closing the session !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Closing the session !!!" Watch "Closing the session !!!" New topic
Author

Closing the session !!!

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 227
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Closing the session !!!
 
Similar Threads
Hibernate, ResultSet and PrepareStatement
session closed
Statement, ResultSet
Writting a stdout of to a file in Java
Getting this error while doing an select Query