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 911C5E285 for ; Fri, 8 Feb 2013 16:26:44 +0000 (UTC) Received: (qmail 25475 invoked by uid 500); 8 Feb 2013 16:26:44 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 25450 invoked by uid 500); 8 Feb 2013 16:26:43 -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 25437 invoked by uid 99); 8 Feb 2013 16:26:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 16:26:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hwellmann.de@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-ob0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 16:26:34 +0000 Received: by mail-ob0-f180.google.com with SMTP id ef5so3976539obb.25 for ; Fri, 08 Feb 2013 08:26:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=F3Cq9P8CSEZjArq6uAXf/oAtL0BeXyEsE5yYolI+Gow=; b=G8+yg/WfTi/X/uVEibcFApp094F5aSB+R9maWZo5D5YF3g27z2QMgmq6IWees/YTFZ mlOYhBwyO5v6MDd4sLjaaVyz8E5kYlTYWOfqhPvijSqIcsxoVG04C5EMZrw1B7o5I1uI jBruq4FXYRczgFPTpbzcO3bvLyIhTFenPGWnyuQ6XNYvfk8ZLfWcpSnrmgqwdZ75f757 1A6lALPeEf2DxHSEIPTFGpVkgMktp2G3unMFTMFNO3WA1qO8yxOy1BB98+AwYEPl3GF2 r2ykAYZ2lR03yN3+0jmDV2qeDgUONq0qFEM4XvkHfeWpRZas/aACuSwmcsvHQmSvPWc7 g76Q== MIME-Version: 1.0 X-Received: by 10.182.212.2 with SMTP id ng2mr4489897obc.81.1360340773034; Fri, 08 Feb 2013 08:26:13 -0800 (PST) Received: by 10.76.13.105 with HTTP; Fri, 8 Feb 2013 08:26:12 -0800 (PST) In-Reply-To: References: Date: Fri, 8 Feb 2013 17:26:12 +0100 Message-ID: Subject: Re: JNDI destination names in MDBs From: Harald Wellmann To: users@activemq.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Here's a JIRA issue: https://issues.apache.org/jira/browse/AMQ-4305 Are you sure about the transformDestination() method you mentioned? Searching the ActiveMQ source tree, the only occurrences I can find are in activemq-client, not in activemq-ra. Isn't ActiveMQEndpointWorker the class that should be changed, doing a JNDI lookup instead of calling new ActiveMQQueue(destName)? Best regards, Harald 2013/2/8 Gary Tully : > that is correct. it sounds like a sensible enhancement. can you open a jira > to track this. > there is one hook point that could help but it would require replacing a > class in the rar. > org.apache.activemq.ActiveMQMessageTransformation#transformDestination gets > called so that could be used to resolve the provided name via jndi. > > that chappy should be configurable like the message transformer - > http://activemq.apache.org/message-transformation.html > > > > On 8 February 2013 09:01, Harald Wellmann wrote: > >> I'm using ActiveMQ 5.7.0 with JBoss AS 7.1.3 via the activemq-rar >> resource adapter. >> >> The documentation of the MDB activation config properties [1] is a >> little unspecific, but it seems that the "destination" property has to >> be the physical queue or topic name, not a JNDI name. >> >> Is there any way to make ActiveMQ recognize a JNDI name in this place? >> Having hard-coded queue names in my application is really a blocker - >> the queue names depend on the deployment environment and can change at >> any time. >> >> [1] http://activemq.apache.org/activation-spec-properties.html >> >> Best regards, >> Harald >> > > > > -- > http://redhat.com > http://blog.garytully.com