geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-4452) Is it possible to deploy more than one mdb???
Date Tue, 09 Dec 2008 00:05:44 GMT
Is it possible to deploy more than one mdb???
---------------------------------------------

                 Key: GERONIMO-4452
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4452
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: OpenEJB
    Affects Versions: 2.2
            Reporter: David Jencks
            Assignee: David Jencks
             Fix For: 2.2


Not sure how this code from EjbModuleBuilder is supposed to work with more than one mdb before
the patch... its inside a loop through the mdbinfos that sets the containerId on them...


@@ -883,10 +883,11 @@
             // add a dependency from the module to the ra so we can be assured the mdb
             // container exists when this app is started
             ejbModuleGBeanData.addDependency(resourceAdapterAbstractName);
-            for(MessageDrivenBeanInfo mdbInfo:mdbs.values()){
-                if(mdbInfo != null && mdbInfo.containerId == null){
-                    throw new DeploymentException("No Resource Adapter defined for MDB '"
+ mdbInfo.ejbName + "'");
-                }
+        }
+        //check that all the mdbs have resource adapters identified.
+        for(MessageDrivenBeanInfo mdbInfo:mdbs.values()){
+            if(mdbInfo != null && mdbInfo.containerId == null){
+                throw new DeploymentException("No Resource Adapter defined for MDB '" + mdbInfo.ejbName
+ "'");
             }
         }
     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message