Hi Christian, After using Spring's SingleConnectionFactory it breaks with the same exception after 3948 loops :(
-Anurag Christian Schneider wrote: > > What I guess is that camel opens a connection for each invocation. Can > you try to use the Spring SingleConnectionFactory? > <bean id="jmsConnectionFactory" > class="org.springframework.jms.connection.SingleConnectionFactory"> > <property name="targetConnectionFactory"> > <bean class="org.apache.activemq.ActiveMQConnectionFactory"> > <property name="brokerURL" value="tcp://localhost:61616" > /> > </bean> > </property> > </bean> > > Greetings > > Christian > > asaksena1 schrieb: >> I'm running the Spring Remoting with JMS (@ >> http://activemq.apache.org/camel/tutorial-jmsremoting.html) example in a >> loop to evaluate the Camel for my project. >> I'm getting the following consistent error after 3922 invocations. >> >> Can anyone tell me what is the cause for this. >> >> ++++ >> org.springframework.jms.UncategorizedJmsException: Uncategorized >> exception >> occured during JMS processing; nested exception is >> javax.jms.JMSException: >> Could not connect to broker URL: tcp://localhost:61616. Reason: >> java.net.BindException: Address already in use: connect >> at >> org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:308) >> at >> org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168) >> at >> org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474) >> at >> org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:173) >> at >> org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:172) >> at >> org.apache.camel.component.bean.CamelInvocationHandler.invoke(CamelInvocationHandler.java:54) >> ++++ >> > > > -- > > Christian Schneider > --- > http://www.liquid-reality.de > > > -- View this message in context: http://www.nabble.com/JMS-error-after-3922-invokations-%28Spring-JMS%29-tp20843426s22882p20897106.html Sent from the Camel - Development mailing list archive at Nabble.com.
