Hi If its on startup you can use option testConnectionOnStartup to indicate if Camel should fail on startup if it cannot get a connection.
However the other issue is within the bounds of Spring if its build to keep retrying until its success. Have you checked spring user forum about this issue? On Thu, May 13, 2010 at 3:22 PM, ssenth <[email protected]> wrote: > > Claus > The options does not work I am using CAMEL 2.2.0 and activemq 5.3.1 > <bean id="activemq" > class="org.apache.activemq.camel.component.ActiveMQComponent"> > <property name="connectionFactory"> > <bean > class="org.apache.activemq.ActiveMQConnectionFactory"> > <property name="brokerURL" > value="tcp://<IP>:61616?jms.maxReconnectAttempts=1"/> > </bean> > </property> > </bean> > > Tried to debug the code and found that a thread for > org.springframework.jms.listener.DefaultMessageListenerContainer is created > and DefaultMessageListenerContainer.refreshConnectionUntilSuccessful() is > invoked. Refresh the underlying Connection, not returning before an attempt > has been successful. > > Can you any one let me know how to set the or restrict the retry to make a > successfull connection. > -- > View this message in context: > http://old.nabble.com/activemq-component-MaxConnection-retry-tp28386612p28547432.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
