On 11/21/06, Naby <[EMAIL PROTECTED]> wrote:
Thx for the quick answer but that's not what i mean. I'm running MQ in Tomcat and after a while in which no client is connected the console shows: [DEBUG] VMTransportFactory - Shutting down VM connectors for broker: localhost [INFO] TransportConnector - Connector vm://localhost Stopped [INFO] BrokerService - ActiveMQ Message Broker (localhost, ID:MERLIN-2926-1164131666666-0:0) is shutting down [INFO] BrokerService - ActiveMQ JMS Message Broker (localhost, ID:MERLIN-2926-1164131666666-0:0) stopped If a client subscribes again the broker starts - but it costs some time. Why the broker shut down and can it be disabled?
If you just create JMS connections and close them down again, the default behaviour is to shut down the local broker if its not longer used. If you want to explicitly create one and leave it up for the duration of the application, use one of the approaches on the page I just referenced to run a broker (e.g. via Java code or Spring)... http://incubator.apache.org/activemq/how-do-i-embed-a-broker-inside-a-connection.html -- James ------- http://radio.weblogs.com/0112098/