activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TOPPER_HARLEY <TREVOR.HIGG...@ERICSSON.COM>
Subject Re: VM Transport problem when closing connections
Date Mon, 24 Sep 2007 12:31:31 GMT

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.


Mime
View raw message