Hi, 
Are you using Spring? Can you use an
org.apache.activemq.xbean.BrokerFactoryBean?

This will create and start the broker and just leave it there in the VM. You
can create a connection and then close it as you want but it will not
shutdown the broker. (Broker stays alive until VM dies or until it is
shutdown through JMX)

e.g. with Spring 

    <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
        <property name="config"
value="classpath:com/xxx/yyy/zzz/activemq.xml"/>
        <property name="start" value="true"/>
    </bean>

/Tom
-- 
View this message in context: 
http://www.nabble.com/VM-Transport-problem-when-closing-connections-tf4508319s2354.html#a12859002
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to