activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Closing Producers
Date Mon, 28 Jul 2008 06:30:14 GMT

On 28 Jul 2008, at 07:17, rodih wrote:

>
> Hi,
> If I define a new producer or consumer as a local variable will it  
> be closed
> (Closed + Garbage collected at some point) once the method returns?
>
> Thanks.
>
> -- 
> View this message in context: http://www.nabble.com/Closing-Producers-tp18684689p18684689.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Yes they should be if you use  ActiveMQ  - however I wouldn't  
recommend it - as its specific to ActiveMQ  (not every JMS client will  
do the same) - and gc is not very deterministic anyway.
It would be better to close them explicitly




cheers,

Rob

http://open.iona.com/products/enterprise-activemq
http://rajdavies.blogspot.com/





Mime
View raw message