activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: How to force broker to disconnect client
Date Wed, 06 Jun 2007 09:22:50 GMT
On 6/4/07, dmitryg <> wrote:
> Sorry, I'm relatively new to ActiveMQ.
> My question is how user with adim privileges can programatically ask broker
> to disconnect client and/or forcefully remove his subscriptions? For example
> malicious client used some other client credentials to connect to
> broker(ActiveMQ security) and consumes/publish messages.

The security plugin prevents access to queues/topics unless folks have
the correct credentials

> Or another case
> when client saw that network connection to the broker has been lost, but
> broker didn't notice it yet. If client does fresh connection( without
> keeping state) I need to force broker to remove previous client's connection
> objects and subscriptions.
> Does ActiveMQ has a solution for that?

You can manually kill stuff via JMX, or the inactivity timeout will
disconnect dead socket connections

see the maxInactivityDuration


View raw message