Author: norman
Date: Sat Oct  9 10:41:05 2010
New Revision: 1006130

URL: http://svn.apache.org/viewvc?rev=1006130&view=rev
Log:
Don't register a shutdown hook for activemq. Spring will take care to shutdown 
on JVM exit. This helps to ensure that activemq broker will not get destroyed 
while ActiveMQMailQueue is still using it

Modified:
    james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml

Modified: 
james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml?rev=1006130&r1=1006129&r2=1006130&view=diff
==============================================================================
--- james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml 
(original)
+++ james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml 
Sat Oct  9 10:41:05 2010
@@ -129,7 +129,7 @@
     </camel:camelContext>
 
     <!--  lets create an embedded ActiveMQ Broker -->
-    <amq:broker useJmx="false" persistent="true" 
dataDirectory="filesystem=file://var/activemq-data/" schedulerSupport="true" 
id="broker">
+    <amq:broker useJmx="false" persistent="true" 
dataDirectory="filesystem=file://var/activemq-data/" schedulerSupport="true" 
useShutdownHook="false" id="broker">
         <amq:destinationPolicy>
             <amq:policyMap>
                 <amq:policyEntries>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to