You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by dmitryg <dg...@gmail.com> on 2007/06/04 17:17:39 UTC

How to force broker to disconnect client

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. 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?
-- 
View this message in context: http://www.nabble.com/How-to-force-broker-to-disconnect-client-tf3865880s2354.html#a10951836
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: How to force broker to disconnect client

Posted by James Strachan <ja...@gmail.com>.
On 6/4/07, dmitryg <dg...@gmail.com> 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

http://activemq.apache.org/configuring-wire-formats.html

see the maxInactivityDuration

-- 
James
-------
http://macstrac.blogspot.com/