activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Bausewein <ha...@comerwell.xs4all.nl>
Subject Re: Closing Producers
Date Mon, 28 Jul 2008 20:22:35 GMT


rodih wrote:
> 
> Thanks for the quick response. I will take your advice and will close
> resources explicitly. 
> 

That's generally recommended. You should not rely on the implementation of a
specific JMS provider, anyway. And it's usually not difficult to do.

Follow the J2EE spec. The comments are clear, I think.

http://java.sun.com/j2ee/1.4/docs/api/

If you close the Session, you may assume that the producers are closed by
the JMS provider (ActiveMQ in this case).
(But ActiveMQ 5.1.0 does not in all cases.)

Hans

-- 
View this message in context: http://www.nabble.com/Closing-Producers-tp18684689p18698801.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message