From users-return-17135-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Wed Dec 03 10:35:00 2008 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 78882 invoked from network); 3 Dec 2008 10:35:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2008 10:35:00 -0000 Received: (qmail 32725 invoked by uid 500); 3 Dec 2008 10:35:12 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 32331 invoked by uid 500); 3 Dec 2008 10:35: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 Received: (qmail 32320 invoked by uid 99); 3 Dec 2008 10:35:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 02:35:11 -0800 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 10:33:41 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1L7p3t-0004zp-0Q for users@activemq.apache.org; Wed, 03 Dec 2008 02:34:29 -0800 Message-ID: <20810431.post@talk.nabble.com> Date: Wed, 3 Dec 2008 02:34:29 -0800 (PST) From: WhiteSock To: users@activemq.apache.org Subject: Question about ActiveMQ's worker thread MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: whitesock1979@hotmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi all, 1 a) Create a new connection & session for every consumer which wants to receive message from a destination. b) Multiple consumer share the same connection & session. Is there any difference (such as performance) between a & b ? 2 When I create a consumer to receive message, I found the following threads running on the background: * Thread [ActiveMQ Transport: tcp://localhost/127.0.0.1:61616] (Running) * Thread [InactivityMonitor ReadCheck] (Running) * Thread [InactivityMonitor WriteCheck] (Running) * Thread [ActiveMQ Session Task] (Running) Is there any chance that I can set these threads' name (because I create a new connection & session for each consumer, I want to set these threads' name to the destination name which they susbcribed to)? Cheers. -- View this message in context: http://www.nabble.com/Question-about-ActiveMQ%27s-worker-thread-tp20810431p20810431.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.