You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Kapil <ka...@gmail.com> on 2006/09/11 16:04:21 UTC

Problem in shutting down ActiveMQ from tomcat

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

INFO: Illegal access: this web application instance has been stopped
already.  Could not load org.apache.activemq.command.KeepAliveInfo.  The
eventual following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
java.lang.IllegalStateException

Please help

Regards,
Kapil

-- 
View this message in context: http://www.nabble.com/Problem-in-shutting-down-ActiveMQ-from-tomcat-tf2252647.html#a6247385
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Problem in shutting down ActiveMQ from tomcat

Posted by Kapil <ka...@gmail.com>.
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 <ka...@gmail.com> 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.


Re: Problem in shutting down ActiveMQ from tomcat

Posted by James Strachan <ja...@gmail.com>.
On 9/11/06, Kapil <ka...@gmail.com> 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/