You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Naby <us...@abwesend.de> on 2006/11/21 19:10:58 UTC

Disable embedded broker shutdown?

Hi,

is there a way to disable the shutdown of the embedded broker after a idle
time ?

Thx
-- 
View this message in context: http://www.nabble.com/Disable-embedded-broker-shutdown--tf2680637.html#a7476626
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Disable embedded broker shutdown?

Posted by James Strachan <ja...@gmail.com>.
On 11/21/06, Naby <us...@abwesend.de> 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/

Re: Disable embedded broker shutdown?

Posted by Naby <us...@abwesend.de>.
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?



James.Strachan wrote:
> 
> You can start and stop embedded brokers pretty easily, so just stop
> them whenever you like.
> 
> http://incubator.apache.org/activemq/how-do-i-embed-a-broker-inside-a-connection.html
> 
> Write an interceptor to deduce when things are inactive.
> 
> http://incubator.apache.org/activemq/interceptors.html
> 
> 
> On 11/21/06, Naby <us...@abwesend.de> wrote:
>>
>> Hi,
>>
>> is there a way to disable the shutdown of the embedded broker after a
>> idle
>> time ?
>>
>> Thx
>> --
>> View this message in context:
>> http://www.nabble.com/Disable-embedded-broker-shutdown--tf2680637.html#a7476626
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Disable-embedded-broker-shutdown--tf2680637.html#a7477547
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Disable embedded broker shutdown?

Posted by James Strachan <ja...@gmail.com>.
You can start and stop embedded brokers pretty easily, so just stop
them whenever you like.

http://incubator.apache.org/activemq/how-do-i-embed-a-broker-inside-a-connection.html

Write an interceptor to deduce when things are inactive.

http://incubator.apache.org/activemq/interceptors.html


On 11/21/06, Naby <us...@abwesend.de> wrote:
>
> Hi,
>
> is there a way to disable the shutdown of the embedded broker after a idle
> time ?
>
> Thx
> --
> View this message in context: http://www.nabble.com/Disable-embedded-broker-shutdown--tf2680637.html#a7476626
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/