Meaningless Drivel is fun!
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
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: 268
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 !!!
It's not a secret anymore!