I tried the way you suggested and it even works with 100K successive invokations now. Thanks a lot !!
-a. Claus Ibsen-2 wrote: > > Hi > > Actually if you are using ActiveMQ as the broker we encourage to use > the ActiveMQComponent that is shipped with ActiveMQ itself > > See this page: > http://activemq.apache.org/camel/activemq.html > > So you can do this: > > <bean id="jms" > class="org.apache.activemq.camel.component.ActiveMQComponent"> > <property name="brokerURL" value="vm://somehost"/> > </bean> > > > > /Claus Ibsen > Apache Camel Committer > Blog: http://davsclaus.blogspot.com/ > > > > On Fri, Dec 5, 2008 at 8:09 AM, Christian Schneider > <[EMAIL PROTECTED]> 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-tp20843426s22882p20937574.html Sent from the Camel - Development mailing list archive at Nabble.com.
