From users-return-278-apmail-openejb-users-archive=openejb.apache.org@openejb.apache.org Wed Oct 17 00:29:10 2007 Return-Path: Delivered-To: apmail-openejb-users-archive@www.apache.org Received: (qmail 719 invoked from network); 17 Oct 2007 00:29:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2007 00:29:10 -0000 Received: (qmail 80665 invoked by uid 500); 17 Oct 2007 00:28:57 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 80652 invoked by uid 500); 17 Oct 2007 00:28:57 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 80643 invoked by uid 99); 17 Oct 2007 00:28:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 17:28:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.97.132.145] (HELO spaceymail-a1.g.dreamhost.com) (208.97.132.145) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 00:28:59 +0000 Received: from [192.168.15.100] (cpe-76-167-147-90.socal.res.rr.com [76.167.147.90]) by spaceymail-a1.g.dreamhost.com (Postfix) with ESMTP id 5B3F4814EB for ; Tue, 16 Oct 2007 17:28:05 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <1192546557.7394.13.camel@moto> References: <1192546557.7394.13.camel@moto> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Dain Sundstrom Subject: Re: Specifying source queue for message driven bean (MDB) Date: Tue, 16 Oct 2007 17:28:07 -0700 To: users@openejb.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Sounds like you are happy with the MDB configuration but want the queue/FE_QUEUE resource-env-ref in FEInternalServicesEJB to point to queue/FE_QUEUE instead of "Default Queue". This error seem very strange because the code that processes resource- env-ref should never create an queue with ID "Default Queue" unless your JNDI reference was named "Default Queue". I'm gonna guess that you have a resource-ref instead of a resouce-env-ref. Can you double check you ejb-jar.xml to see if you have the wrong ref type? In the mean time, I've committed a patch the changes these log messages to include the exact reference type. I'll also look at logging an error or throwing an exception if you use a resource-ref to auto create a queue or topic. -dain BTW, If my assumptions are correct, I'm surprised you didn't get a null pointer exception when the container attempted to construct an ActimeMQ Queue without a destination name. On Oct 16, 2007, at 7:55 AM, Martin Vysny wrote: > Hi guys, > can you help me again? ;) We have a MDB named CallAgentMDB, which > is a > message consumer (MessageListener), and FEInternalServicesBean, > which is > a stateless bean. The problem is, that the MDB is not receiving > messages > which are sent by the internal services bean. When openejb starts, it > prints the following: > > 2007-10-16 16:37:32,401 - INFO - Configuring Service(id=Default > Stateless Container, type=Container, provider-id=Default Stateless > Container) > 2007-10-16 16:37:32,406 - INFO - Auto-creating a container for bean > FEClientEJB: Container(type=STATELESS, id=Default Stateless Container) > 2007-10-16 16:37:32,407 - INFO - Auto-linking resource reference > 'jdbc/DB2DS' in bean FEInternalServicesEJB to Resource(id=Default JDBC > Database) > 2007-10-16 16:37:32,407 - INFO - Configuring Service(id=Default JMS > Connection Factory, type=Resource, provider-id=Default JMS Connection > Factory) > 2007-10-16 16:37:32,407 - INFO - Auto-creating a resource with id > 'Default JMS Connection Factory' of type > 'javax.jms.QueueConnectionFactory for 'FEInternalServicesEJB'. > 2007-10-16 16:37:32,407 - INFO - Configuring Service(id=Default JMS > Resource Adapter, type=Resource, provider-id=Default JMS Resource > Adapter) > 2007-10-16 16:37:32,408 - INFO - Auto-linking resource reference > 'jms/FE_QCF' in bean FEInternalServicesEJB to Resource(id=Default JMS > Connection Factory) > 2007-10-16 16:37:32,408 - INFO - Configuring Service(id=Default > Queue, > type=Resource, provider-id=Default Queue) > 2007-10-16 16:37:32,408 - INFO - Auto-creating a resource with id > 'Default Queue' of type 'javax.jms.Queue for 'FEInternalServicesEJB'. > 2007-10-16 16:37:32,408 - INFO - Auto-linking resource reference > 'queue/FE_QUEUE' in bean FEInternalServicesEJB to Resource(id=Default > Queue) > 2007-10-16 16:37:32,408 - INFO - Configuring Service(id=Default MDB > Container, type=Container, provider-id=Default MDB Container) > 2007-10-16 16:37:32,409 - INFO - Auto-creating a container for bean > CallAgentMDB: Container(type=MESSAGE, id=Default MDB Container) > 2007-10-16 16:37:32,409 - INFO - Configuring Service(id=queue/ > FE_QUEUE, > type=Resource, provider-id=Default Queue) > 2007-10-16 16:37:32,409 - INFO - Auto-creating a resource with id > 'queue/FE_QUEUE' of type 'javax.jms.Queue for 'CallAgentMDB'. > 2007-10-16 16:37:32,409 - INFO - Auto-linking resource reference > 'queue/FE_QUEUE' in bean CallAgentMDB to Resource(id=queue/FE_QUEUE) > 2007-10-16 16:37:32,409 - INFO - Configuring Service(id=CallAgentMDB, > type=Resource, provider-id=Default Queue) > 2007-10-16 16:37:32,410 - INFO - Auto-creating a resource with id > 'CallAgentMDB' of type 'javax.jms.Queue for 'CallAgentMDB'. > 2007-10-16 16:37:32,708 - INFO - Loaded > Module: /home/vyzivus/work/chrysler/fe-trunk/fe-ejb/eclipse-target/ > classes > > So, we can see that FEInternalServicesEJB posts messages to "Default > Queue", while CallAgentMDB expects messages in "queue/FE_QUEUE" queue. > How can I set the CallAgentMDB to listen on "Default Queue"? Can you > please provide me with some MDB examples on OpenEJB? Thanks! > Martin > > -- > Mgr. Martin Vysny | mvy@whitestein.com > Software Engineer > Whitestein Technologies s.r.o | www.whitestein.com > Panenska 28 | 811 03 Bratislava | Slovak Republic > Main +421 2 5443-5502 | Direct +421 2 5930-0717 >