[jboss-cvs] JBossAS SVN: r72926 - projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu May 1 08:57:52 EDT 2008


Author: scott.stark at jboss.org
Date: 2008-05-01 08:57:52 -0400 (Thu, 01 May 2008)
New Revision: 72926

Modified:
   projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/JBossEnterpriseBeanMetaData.java
Log:
JBMETA-32, add kernel container name notions

Modified: projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/JBossEnterpriseBeanMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/JBossEnterpriseBeanMetaData.java	2008-05-01 11:46:27 UTC (rev 72925)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/JBossEnterpriseBeanMetaData.java	2008-05-01 12:57:52 UTC (rev 72926)
@@ -177,6 +177,9 @@
 
    /** the class name that implements the JNDI binding policy for this ejb */
    private String jndiBindingPolicy;
+   /** The runtime name of the ejb container as known to the 'kernel', what ever it is */
+   private String containerName;
+   private String generatedContainerName;
 
    /**
     * Create the correct JBossEnterpriseBeanMetaData for the input
@@ -580,7 +583,8 @@
    }
 
    /**
-    * Determine the container jndi name used in the object name
+    * Determine the container jndi name used in the object name. This is
+    * really obsolete as there is no need for jmx names.
     * 
     * @return the jndi name suitable for use in the object name
     */
@@ -589,8 +593,40 @@
    {
       return getLocalJndiName();
    }
+   
+   public String getContainerName()
+   {
+      return containerName;
+   }
+   public void setContainerName(String containerName)
+   {
+      this.containerName = containerName;
+   }
 
+   @XmlTransient
+   public String getGeneratedContainerName()
+   {
+      return generatedContainerName;
+   }
+   public void setGeneratedContainerName(String containerName)
+   {
+      this.generatedContainerName = containerName;
+   }
    /**
+    * Get the kernel name for the ejb container. This is either the
+    * containerName managed property, or a runtime generated name set via
+    * the non-managed generatedContainerName property.
+    * @return the kernel name for the ejb container
+    */
+   public String determineContainerName()
+   {
+      String name = containerName;
+      if(name == null)
+         name = generatedContainerName;
+      return name;
+   }
+
+   /**
     * Get the exceptionOnRollback.
     * 
     * @return the exceptionOnRollback.




More information about the jboss-cvs-commits mailing list