On Mon, Sep 29, 2008 at 2:28 AM, James Strachan
<[EMAIL PROTECTED]> wrote:
> Everything Bruce just said plus...
>
> 2008/9/28 Andres Rangel <[EMAIL PROTECTED]>:
>> Hi,
>> I am writting my on jms libraary for an internal application using java, and 
>> would like to know what should I cache, connections or sessions (all from 
>> the same connection)?
>>
>> Also, would like to know if I have an application that would run 
>> indefinetely, should I every so foten check the "status" or "health" of the 
>> connection? Similar as is done with jdbc connections where the poolmgr make 
>> asimp[le query to check if the connection is active or stale.
>
> The failover transport in ActiveMQ already does this for you, so you
> don't have to
> http://activemq.apache.org/failover-transport-reference.html

Oh and BTW, please note James' gotachas with the Spring JMSTemplate:

http://activemq.apache.org/jmstemplate-gotchas.html

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/

Blog: http://bruceblog.org/

Reply via email to