[jboss-cvs] JBossAS SVN: r82452 - 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
Fri Dec 19 13:26:12 EST 2008


Author: petemuir
Date: 2008-12-19 13:26:12 -0500 (Fri, 19 Dec 2008)
New Revision: 82452

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/JBossMessageDrivenBeanDescriptorAdaptor.java
   projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/JBossSessionBeanDescriptorAdaptor.java
Log:
Update for new spi

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-19 17:38:41 UTC (rev 82451)
+++ projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java	2008-12-19 18:26:12 UTC (rev 82452)
@@ -78,21 +78,21 @@
       // Ensure it's an EJB3 DU (by looking for the processed metadata)
       if (du.getAttachment(AttachmentNames.PROCESSED_METADATA, JBossMetaData.class) != null && du.getAttachment(JBossMetaData.class).isEJB3x())
       {
-         log.info("EJB metadata for " + du.toString());
+         log.trace("EJB metadata for " + du.toString());
          for (JBossEnterpriseBeanMetaData enterpriseBeanMetaData : du.getAttachment(JBossMetaData.class).getEnterpriseBeans())
          {
             if (enterpriseBeanMetaData.isSession())
             {
                JBossSessionBeanMetaData sessionBeanMetaData = (JBossSessionBeanMetaData) enterpriseBeanMetaData;
                EjbDescriptor<?> ejbDescriptor = new JBossSessionBeanDescriptorAdaptor<Object>(sessionBeanMetaData, du, resolver);
-               log.info(ejbDescriptor.toString());
+               log.trace(ejbDescriptor.toString());
                ejbs.add(ejbDescriptor);
             }
             else if (enterpriseBeanMetaData.isMessageDriven())
             {
                JBossMessageDrivenBeanMetaData messageDrivenBeanMetaData = (JBossMessageDrivenBeanMetaData) enterpriseBeanMetaData;
                EjbDescriptor<?> ejbDescriptor = new JBossMessageDrivenBeanDescriptorAdaptor<Object>(messageDrivenBeanMetaData, du, resolver);
-               log.info(ejbDescriptor.toString());
+               log.trace(ejbDescriptor.toString());
                ejbs.add(ejbDescriptor);
             }
          }

Modified: projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/JBossMessageDrivenBeanDescriptorAdaptor.java
===================================================================
--- projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/JBossMessageDrivenBeanDescriptorAdaptor.java	2008-12-19 17:38:41 UTC (rev 82451)
+++ projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/JBossMessageDrivenBeanDescriptorAdaptor.java	2008-12-19 18:26:12 UTC (rev 82452)
@@ -54,4 +54,10 @@
       return true;
    }
    
+   public String getLocalJndiName()
+   {
+      // Not relevant
+      return null;
+   }
+   
 }

Modified: projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/JBossSessionBeanDescriptorAdaptor.java
===================================================================
--- projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/JBossSessionBeanDescriptorAdaptor.java	2008-12-19 17:38:41 UTC (rev 82451)
+++ projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/JBossSessionBeanDescriptorAdaptor.java	2008-12-19 18:26:12 UTC (rev 82452)
@@ -20,6 +20,7 @@
    private final boolean stateful;
    private final boolean stateless;
    private final boolean singleton;
+   private final String localJndiName;
    
    public JBossSessionBeanDescriptorAdaptor(JBossSessionBeanMetaData sessionBeanMetaData, DeploymentUnit deploymentUnit, EjbReferenceResolver resolver)
    {
@@ -55,6 +56,7 @@
       this.stateful = sessionBeanMetaData.isStateful();
       this.stateless = sessionBeanMetaData.isStateless();
       this.singleton = false;
+      this.localJndiName = sessionBeanMetaData.getLocalJndiName();
    }
    
    public Iterable<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces()
@@ -92,4 +94,9 @@
       return false;
    }
    
+   public String getLocalJndiName()
+   {
+      return localJndiName;
+   }
+   
 }




More information about the jboss-cvs-commits mailing list