Hi,
I have two webapps. One is an instance of ActiveMQ, the other a webapp with a SimpleMessageListenerContainer. Both webapps load in the same instance of Tomcat but the webapp with the listener loads first. The connectionFactory gives errors because ActiveMQ hasn't finished loading. Ideas?
<bean id="connectionFactory" class="org.activemq.ActiveMQConnectionFactory">
<property name="brokerURL">
<value>tcp://localhost:61616</value>
</property>
</bean>
<bean id="jmsContainer" class="org.springframework.jms.listener.SimpleMess ageListenerContainer">
<property name="concurrentConsumers" value="40" />
<property name="destination" ref="fileMonitorDestination" />
<property name="messageListener" ref="fileMonitorMessageConsumer" />
<property name="connectionFactory" ref="connectionFactory" />
</bean>


Reply With Quote