Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 18256 invoked from network); 3 Feb 2009 14:55:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2009 14:55:31 -0000 Received: (qmail 25007 invoked by uid 500); 3 Feb 2009 14:55:31 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 24674 invoked by uid 500); 3 Feb 2009 14:55:29 -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 24663 invoked by uid 99); 3 Feb 2009 14:55:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 06:55:29 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,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; Tue, 03 Feb 2009 14:55:22 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LUMg2-0008Ov-FW for users@activemq.apache.org; Tue, 03 Feb 2009 06:55:02 -0800 Message-ID: <21811493.post@talk.nabble.com> Date: Tue, 3 Feb 2009 06:55:02 -0800 (PST) From: soody To: users@activemq.apache.org Subject: JMS pooling... pool package in activeMQ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: atinsood@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org I am working on JMS pooling and have a few doubts 1)I was going through the pool package of ActiveMQ. In PooledMessageProducer we have s.th like // just in case let only one thread send at once synchronized (messageProducer) { messageProducer.send(destination, message, deliveryMode, priority, timeToLive); } in the send method. I am not sure why we need to have the send synchronized. AS far as I understand we can use as many producers from a session and send msgs in parallel from them to the same destination.... Only thing that can get messed up is there will be no order in which these msgs are sent. But I guess when we decided to use multiple threads to send msgs we have anyways made our choice to drop the sequencing order. 2)Also there has been much discussion the pooling thing but there is nothing concrete. I guess for any JMS client we can write a wrapper around the PooledConnectionFactory and other classes and make sure that we have a number of connections and a pool of sessions associated with it. We can use these for pooling. Does it make any diff if we use this for producing or consumption of msgs. Please note I am talking about a standalone JMS Client, no springs included and a pretty generic client that can work with any JMS provider. -- View this message in context: http://www.nabble.com/JMS-pooling...-pool-package-in-activeMQ-tp21811493p21811493.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.