Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 95762 invoked from network); 2 Feb 2007 16:43:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2007 16:43:14 -0000 Received: (qmail 22095 invoked by uid 500); 2 Feb 2007 16:43:19 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 22076 invoked by uid 500); 2 Feb 2007 16:43:19 -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 22037 invoked by uid 500); 2 Feb 2007 16:43:19 -0000 Delivered-To: apmail-geronimo-activemq-users@geronimo.apache.org Received: (qmail 22033 invoked by uid 99); 2 Feb 2007 16:43:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 08:43:19 -0800 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=INFO_TLD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 08:43:09 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HD1Uv-00073x-6c for activemq-users@geronimo.apache.org; Fri, 02 Feb 2007 08:42:49 -0800 Message-ID: <8770428.post@talk.nabble.com> Date: Fri, 2 Feb 2007 08:42:49 -0800 (PST) From: elliottjf To: activemq-users@geronimo.apache.org Subject: ActiveMQConnection.createConnectionConsumer bug? In-Reply-To: <8763535.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jfe@pobox.com References: <8763535.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Okay, from what I can tell, when using the ra activation spec driven consumer construction, the ConsumerInfo options where getting lost. Upon removing the errant 'this.' and rebuilding the activemq-core module, things are now working for me. snippet from org.apache.activemq.ActiveMQConnection.java: public ConnectionConsumer createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages, boolean noLocal) throws JMSException { checkClosedOrFailed(); ensureConnectionInfoSent(); ConsumerId consumerId = createConsumerId(); ConsumerInfo info = new ConsumerInfo(consumerId); info.setDestination(ActiveMQMessageTransformation.transformDestination(destination)); info.setSelector(messageSelector); info.setPrefetchSize(maxMessages); info.setNoLocal(noLocal); info.setDispatchAsync(dispatchAsync); // Allows the options on the destination to configure the consumerInfo if( info.getDestination().getOptions()!=null ) { HashMap options = new HashMap(info.getDestination().getOptions()); // IntrospectionSupport.setProperties(-->this.info<--, options, "consumer."); //JE 07.02.01 removed the 'this' from info. seems to fix the honoring of consumer.exclusive option for a jencks jcaconnectior managed consumer IntrospectionSupport.setProperties(info, options, "consumer."); } return new ActiveMQConnectionConsumer(this, sessionPool, info); } -- View this message in context: http://www.nabble.com/How-can-I-configure-an-%22Exclusive-Consumer%22-queue-with-a-Jencks-JCAConnector--tf3159712.html#a8770428 Sent from the ActiveMQ - User mailing list archive at Nabble.com.