Re: Reconnect topic subscriber after connection failure

2010-03-25 Thread Leen Toelen
Hi, I am performing some tests, and noticed that when I create the route in xml (with the subscriptionDurable=true parameter), the subscribers come online after restart of activeMQ. When I use the fluent api the subscriber goes offline. This code goes offline when ActiveMQ restarts public void c

Re: Reconnect topic subscriber after connection failure

2010-03-25 Thread Charles Moulliard
I think that you must define the subscription as durable like that : from(activemq:queue:example1?durableSubscriptionName=TopicReader1&subscriptionDurable=true").to(""); Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoullia

Re: Reconnect topic subscriber after connection failure

2010-03-25 Thread Leen Toelen
Hi Charles, the behavior might be correct but not what I expected :-) No really, is there a way to configure spring/camel to restart the topic subscriber when the connection is refreshed? I would like to have messages forwarded all the time, even after restarts of the ActiveMQ broker or network p

Re: Reconnect topic subscriber after connection failure

2010-03-25 Thread Charles Moulliard
Leen, The behavior observed is correct because messages could not forwarded till that a jms client (= camel jms endpoint) consume the messages from the topic. Kind regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliar

Reconnect topic subscriber after connection failure

2010-03-25 Thread Leen Toelen
Hi, I have the following topic subscriber public void configure() throws Exception { ActiveMQConnectionFactory connectionFactory = lookup(ActiveMQConnectionFactory.class); JmsTransactionManager jmsTransactionManager = lookup(JmsTransactionManager.class); JmsEndpoint topic = (JmsEndpoint) endpoin