Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 63581 invoked from network); 5 Jul 2007 13:27:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jul 2007 13:27:23 -0000 Received: (qmail 14342 invoked by uid 500); 5 Jul 2007 13:27:25 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 14314 invoked by uid 500); 5 Jul 2007 13:27:25 -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 14305 invoked by uid 99); 5 Jul 2007 13:27:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 06:27:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.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; Thu, 05 Jul 2007 06:27:20 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I6RMK-0005UT-D0 for dev@activemq.apache.org; Thu, 05 Jul 2007 06:27:00 -0700 Message-ID: <11446451.post@talk.nabble.com> Date: Thu, 5 Jul 2007 06:27:00 -0700 (PDT) From: Elber To: dev@activemq.apache.org Subject: Enlarge ActiveMQ's capacity of concurrent? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: shaheer@hotmail.fr X-Virus-Checked: Checked by ClamAV on apache.org I wrote this code and I want to know how can I modify it to share a connection between many threads: QConnection = QConnectionFactory.createQueueConnection(); QSession = QConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); QReceiver = QSession.createReceiver(Q); QConnection.start(); SThread = new Thread(this); SThread.start(); ________________________________________________ Thank you. -- View this message in context: http://www.nabble.com/Enlarge-ActiveMQ%27s-capacity-of-concurrent--tf4029718s2354.html#a11446451 Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.