camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Karpe <aka...@fusesource.com>
Subject Re: Disappearing topics in routes
Date Thu, 23 Jun 2011 19:03:18 GMT
Hi,

There are several things here

    a> Are the subscribers truly durable ? 
        In order to set up a durable subscription on a JMS endpoint, you
must specify a client ID, which identifies this particular connection, and a
durable subscription name, which identifies the durable subscriber. For
example, the following route sets up a durable subscription to the JMS
topic, news, with a client ID of conn01 and a durable subscription name of
John.Doe:

from("activemq:topic:src).
   
to(""activemq:topic:dest?clientId=conn01&durableSubscriptionName=John.Doe");

Also check out this blog. It is pretty instructive
 
http://stefanlearninglog.blogspot.com/2009/07/persistent-jms-topics-using-activemq.html
http://stefanlearninglog.blogspot.com/2009/07/persistent-jms-topics-using-activemq.html 

    b> Setting the persistent to "true" makes the broker a persistent broker
however this is the default behavior of JMS per the JMS spec. The flag is
interesting when set to "false". Hence you do not buy anything by explicitly
setting this to true.

    c> Topics are only persistent if there are Durable subscribers, not
otherwise... Messages are discarded in the absence of durable subscribers as
there is no need to preserve them.

Cheers,

Ashwin...


-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
CamelOne 2011: http://fusesource.com/camel2011 
---------------------------------------------------------
--
View this message in context: http://camel.465427.n5.nabble.com/Disappearing-topics-in-routes-tp4517076p4518662.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message