From dev-return-6839-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Wed Jun 06 09:23:19 2007 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 27764 invoked from network); 6 Jun 2007 09:23:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 09:23:18 -0000 Received: (qmail 34167 invoked by uid 500); 6 Jun 2007 09:23:22 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 34149 invoked by uid 500); 6 Jun 2007 09:23:21 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 34139 invoked by uid 99); 6 Jun 2007 09:23:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 02:23:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.strachan@gmail.com designates 66.249.82.228 as permitted sender) Received: from [66.249.82.228] (HELO wx-out-0506.google.com) (66.249.82.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 02:23:16 -0700 Received: by wx-out-0506.google.com with SMTP id i28so78369wxd for ; Wed, 06 Jun 2007 02:22:55 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=reZDNwYQLcBPFcDtI9r58cqOjmTjEgQvl1TsYxpLMQbQ2vfG1OjmMJVgIIFxS7zXGZYKKwq6GbQ2CZQncOCGhWTtxok6W0WRjAAaNPQkgMyCskBAE2yKRsaA3m09vYMhGD9WYhp6YlN7iAoN7IeVPCT+Ubxp9DXh6RlKla/db3g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dxIPFb6ITl8WexjXwjuKt598poediA2bjk+LM/aqCJgkJHgErRE/bPo/ujVquEv4yucJcpAdZQKyf26s/Lp4MFXqFZn5AqKOQ9wOah4SM6fPD0DGnOJNBakiIuQSfoPk5Y5kC8hzu0+TULSEejLtpjbogXzjvyBuFfSpdXF55l0= Received: by 10.90.52.18 with SMTP id z18mr157575agz.1181121775209; Wed, 06 Jun 2007 02:22:55 -0700 (PDT) Received: by 10.90.67.18 with HTTP; Wed, 6 Jun 2007 02:22:50 -0700 (PDT) Message-ID: Date: Wed, 6 Jun 2007 10:22:50 +0100 From: "James Strachan" To: dev@activemq.apache.org Subject: Re: How to force broker to disconnect client In-Reply-To: <10951836.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <10951836.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 http://activemq.apache.org/configuring-wire-formats.html see the maxInactivityDuration -- James ------- http://macstrac.blogspot.com/