Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 17985 invoked from network); 29 Apr 2006 03:17:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Apr 2006 03:17:06 -0000 Received: (qmail 59596 invoked by uid 500); 29 Apr 2006 03:17:05 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 59437 invoked by uid 500); 29 Apr 2006 03:17:04 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 59426 invoked by uid 99); 29 Apr 2006 03:17:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 20:17:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 20:17:03 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E5BBF7142E6 for ; Sat, 29 Apr 2006 03:16:37 +0000 (GMT) Message-ID: <7343800.1146280597938.JavaMail.jira@brutus> Date: Sat, 29 Apr 2006 03:16:37 +0000 (GMT+00:00) From: "Aaron Mulder (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-1680) MDB without activation-config in openejb-jar.xml silently fails In-Reply-To: <828895940.1141341579251.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-1680?page=comments#action_12377062 ] Aaron Mulder commented on GERONIMO-1680: ---------------------------------------- Upon consideration, this doesn't seem so straightforward. - We don't know what the JMS provider is, so we don't know which activation-config settings are sufficient for it to be "working" (though ActivationSpec can be validated) - The settings can be provided in ejb-jar.xml (in the message-driven-bean/activation-config area), and we don't know which of *those* settings might be sufficient - If a message-destination-link is specified, that needs to be decoded to an admin object, and the physical name needs to be pulled out of that (that's a product-specific property). Here's what I propose: - Create a Map to hold the activation config settings - Look up the ActivationSpec and determine whether it's class name is "org.activemq.ra.ActiveMQActivationSpec" - If so, do the admin object arithmatic and pop that value into "destination" in the map - Write all the values from ejb-jar.xml into the map - Write all the values from openejb-jar.xml into the map - Iterate the map and try to apply all the properties to the ActivationSpec - Temporarily instantiate the ActivationSpec, apply all the properties, and validate it > MDB without activation-config in openejb-jar.xml silently fails > --------------------------------------------------------------- > > Key: GERONIMO-1680 > URL: http://issues.apache.org/jira/browse/GERONIMO-1680 > Project: Geronimo > Type: Bug > Security: public(Regular issues) > Components: ActiveMQ, OpenEJB > Versions: 1.0 > Reporter: Aaron Mulder > Assignee: Aaron Mulder > Priority: Critical > Fix For: 1.1 > > I created a queue and sent a couple messages to it. > Then I created an MDB with a message-destination-type of javax.jms.Queue and a message-destination-link pointing to a message-destination with the name of the Queue. It seems like this is enough information to point the MDB to that queue, assuming that openejb-jar.xml lists the resource adapter for the MDB. > This deployed successfully, but no messages were received by the MDB. > Adding an activation-config section to openejb-jar.xml fixed the problem -- the pending messages were received during deployment. > One of these two issues strikes me as a bug: > 1) Why wasn't the MDB hooked up to the queue without needing an activation-config block in openejb-jar.xml? > 2) If that's an error, why is activation-config optional for an MDB in openejb-jar.xml and why didn't it cause a deployment error? > In any case, I think deployment should always fail if an MDB is not actually hooked up to a destination. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira