This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Closing the session !!!" Watch "Closing the session !!!" New topic

Closing the session !!!

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 248
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:
subject: Closing the session !!!
Similar Threads
Writting a stdout of to a file in Java
Statement, ResultSet
session closed
Getting this error while doing an select Query
Hibernate, ResultSet and PrepareStatement