[jboss-cvs] JBossAS SVN: r82344 - projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 17 09:55:30 EST 2008
Author: petemuir
Date: 2008-12-17 09:55:29 -0500 (Wed, 17 Dec 2008)
New Revision: 82344
Modified:
projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java
Log:
Right check
Modified: projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java
===================================================================
--- projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java 2008-12-17 14:09:15 UTC (rev 82343)
+++ projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java 2008-12-17 14:55:29 UTC (rev 82344)
@@ -10,6 +10,7 @@
import org.jboss.deployers.client.spi.Deployment;
import org.jboss.deployers.structure.spi.DeploymentUnit;
import org.jboss.deployers.structure.spi.main.MainDeployerStructure;
+import org.jboss.ejb3.common.deployers.spi.AttachmentNames;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
import org.jboss.ejb3.common.registrar.spi.NotBoundException;
import org.jboss.ejb3.common.resolvers.spi.EjbReferenceResolver;
@@ -69,7 +70,7 @@
DeploymentUnit du = mds.getDeploymentUnit(d.getName());
// Ensure it's an EJB3 DU (by looking for the processed metadata)
- if (du.getAttachment(JBossMetaData.class).isEJB3x())
+ if (du.getAttachment(AttachmentNames.PROCESSED_METADATA, JBossMessageDrivenBeanMetaData.class) != null && du.getAttachment(JBossMetaData.class).isEJB3x())
{
log.info("EJB metadata for " + du.toString());
for (JBossEnterpriseBeanMetaData enterpriseBeanMetaData : du.getAttachment(JBossMetaData.class).getEnterpriseBeans())
More information about the jboss-cvs-commits
mailing list