-
1. Re: Camel-JMS Durable Subscriber
davestanley May 13, 2009 11:41 AM (in response to gmotts_gary.motts)Hi Gary,
It looks like you need something like this:
from("activemq:topic:topic").filter((myPredicate)).to("activemq:queue:example1");
And then set your durable subscriber up as follows
from(activemq:queue:example1?clientId=client1&cacheLevelName=CACHE_CONSUMER&durableSubscriptionName=TopicReader1&subscriptionDurable=true").to("....");
Regards
/Dave
Edited by: dstanley on May 13, 2009 3:41 PM
-
2. Re: Camel-JMS Durable Subscriber
gmotts_gary.motts May 13, 2009 4:01 PM (in response to davestanley)Thanks Dave!
It worked, with one change. I received an error " durable subscription requires a topic" so I defined a topic to topic filter, which then enabled me to define a durable subscriber. I looked through the camel manual and could not find a property that designates the topic name for a durable subscriber.:
from("activemq:topic:topic").filter((myPredicate)).to("activemq:topic:exampletTopic1");
from(activemq:topic:exampleTopic1?clientId=client1&cacheLevelName=CACHE_CONSUMER&durableSubscriptionName=TopicReader1&subscriptionDurable=true").to("activemq:queue:durableSubscriberQueue1");
Many thanks,:8}
Gary
-
3. Re: Camel-JMS Durable Subscriber
davestanley May 13, 2009 6:43 PM (in response to gmotts_gary.motts)Great, thanks for the update and glad to hear you are up and running.
/Dave