Hi James,
Am using Spring to start ActiveMQ. My xml contains following entry
<bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL">
<value>tcp://localhost:61401</value>
</property>
<property name="optimizedMessageDispatch" value="true" />
<property name="copyMessageOnSend" value="false" />
<property name="optimizeAcknowledge" value="true" />
<property name="alwaysSessionAsync" value="true" />
<property name="asyncDispatch" value="true" />
<property name="useAsyncSend" value="true" />
</bean>
</property>
</bean>
<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean"
abstract="false" singleton="true" lazy-init="default" autowire="default"
dependency-check="default">
<property name="config" value="classpath:ActiveMq.xml" />
<property name="start" value="true" />
</bean>
Regards,
Kapil
James.Strachan wrote:
>
> On 9/11/06, Kapil <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> My spring based application is using ActiveMQ 4.0.1 in embedded mode
>> running
>> in Tomcat 5.5.17 server. When I try to shutdown Tomcat server, I receive
>> folllowing error and shutdown process is halted
>
> How are you starting/stopping the broker? My advice would be to use
> Spring to create an embedded broker then you have explciit control
> over it rather than creating vm:// connections thoughout your
> application. See the activemq-web-demo or activemq-web-console for
> examples
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>
>
--
View this message in context:
http://www.nabble.com/Problem-in-shutting-down-ActiveMQ-from-tomcat-tf2252647.html#a6266994
Sent from the ActiveMQ - User forum at Nabble.com.