Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 207DE10CE9 for ; Sun, 6 Oct 2013 19:41:13 +0000 (UTC) Received: (qmail 24176 invoked by uid 500); 6 Oct 2013 19:41:12 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 24144 invoked by uid 500); 6 Oct 2013 19:41:11 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Delivered-To: moderator for users@activemq.apache.org Received: (qmail 41200 invoked by uid 99); 5 Oct 2013 12:16:13 -0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Date: Sat, 5 Oct 2013 05:15:06 -0700 (PDT) From: stargate To: users@activemq.apache.org Message-ID: <1380975306305-4672296.post@n4.nabble.com> Subject: ActiveMQ, how can i delete alle consumers in my queue ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, i working with JEE and tomcat and i have created a jmsproducer and a consumer for my jms queue. I create the consumer with a singleton pattern so that i have only one consumer. But my problem is, every time i undeploy the war file and upload a new war file to my server it add`s a new consumer to my jms queue.. but i want only one consumer that subscribe`s to my queue.. i want that every time i upload a new war file.. the server removes all consumers that subscibed to my queue. How can i do that ? or ist there an easier way? my java code looks similar to this link http://activemq.apache.org/hello-world.html Best regards stargate -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-how-can-i-delete-alle-consumers-in-my-queue-tp4672296.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.