[jboss-cvs] JBossAS SVN: r76035 - in projects/metadata/tags: jboss-metadata-1.0.0.Beta30 and 5 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Jul 20 17:47:51 EDT 2008


Author: ALRubinger
Date: 2008-07-20 17:47:50 -0400 (Sun, 20 Jul 2008)
New Revision: 76035

Added:
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/pom.xml
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/BasicJndiBindingPolicy.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/EjbNameJndiBindingPolicy.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/SessionJndiBindingPolicy.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/spi/DefaultJndiBindingPolicy.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/annotation/ejb3/ext/api/MyStatefulBean.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/jbmeta58/MyDefaultJndiBindingPolicy.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/jbmeta77/
Removed:
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/pom.xml
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/BasicJndiBindingPolicy.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/EjbNameJndiBindingPolicy.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/SessionJndiBindingPolicy.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/spi/DefaultJndiBindingPolicy.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/annotation/ejb3/ext/api/MyStatefulBean.java
   projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/jbmeta58/MyDefaultJndiBindingPolicy.java
Log:
[maven-release-plugin]  copy for tag jboss-metadata-1.0.0.Beta30

Copied: projects/metadata/tags/jboss-metadata-1.0.0.Beta30 (from rev 76027, projects/metadata/trunk)

Deleted: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/pom.xml
===================================================================
--- projects/metadata/trunk/pom.xml	2008-07-20 13:50:28 UTC (rev 76027)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/pom.xml	2008-07-20 21:47:50 UTC (rev 76035)
@@ -1,167 +0,0 @@
-<!--
-  vi:ts=2:sw=2:expandtab
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.jboss</groupId>
-    <artifactId>jboss-parent</artifactId>
-    <version>4.0.CR1</version>
-  </parent>
-  <groupId>org.jboss.metadata</groupId>
-  <artifactId>jboss-metadata</artifactId>
-  <packaging>jar</packaging>
-  <version>1.0.0-SNAPSHOT</version>
-  <name>JBoss Metadata</name>
-  <url>http://www.jboss.org</url>
-  <description>The common JavaEE metadata classes</description>
-  <scm>
-    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/trunk/</connection>
-    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/trunk/</developerConnection>
-  </scm>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.4.3</version>
-        <configuration>
-          <printSummary>true</printSummary>
-          <disableXmlReport>false</disableXmlReport>
-          <redirectTestOutputToFile>true</redirectTestOutputToFile>
-          <includes>
-            <include>**/*TestCase.java</include>
-          </includes>
-        </configuration>
-      </plugin>      
-    </plugins>
-  </build>
-
-  <!-- 
-    Eclipse settings have been removed from parent. This needs to be
-    done via an eclipse profile.
-    http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085896#4085896 
-    -->
-  <profiles>
-    <profile>
-      <id>eclipse</id>
-      <build>
-        <plugins>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-eclipse-plugin</artifactId>
-            <configuration>
-              <downloadSources>true</downloadSources>
-              <buildOutputDirectory>target/eclipse-classes</buildOutputDirectory>
-            </configuration>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-  </profiles>
-
-  <!-- Compile Dependencies -->
-  <dependencies>
-
-    <dependency>
-      <groupId>org.jboss.logging</groupId>
-      <artifactId>jboss-logging-spi</artifactId>
-      <version>2.0.5.GA</version>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jboss-common-core</artifactId>
-      <version>2.2.7.GA</version>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss.ejb3</groupId>
-      <artifactId>jboss-ejb3-ext-api</artifactId>
-      <version>0.4</version>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss.javaee</groupId>
-      <artifactId>jboss-ejb-api</artifactId>
-      <version>3.0.0.CR1</version>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss.javaee</groupId>
-      <artifactId>jboss-jms-api</artifactId>
-      <version>1.1.0.CR1</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss.javaee</groupId>
-      <artifactId>jboss-persistence-api</artifactId>
-      <version>3.0.0.CR1</version>
-    </dependency>
-      
-    <dependency>
-      <groupId>org.jboss.javaee</groupId>
-      <artifactId>jboss-transaction-api</artifactId>
-      <version>1.0.1.CR1</version>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss.ws</groupId>
-      <artifactId>jbossws-spi</artifactId>
-      <version>1.0.2.GA</version>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jboss-jaxws</artifactId>
-      <version>2.0.1.GA</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jbossxb</artifactId>
-      <version>2.0.0.CR9</version>
-      <exclusions>
-        <exclusion>
-          <groupId>jboss</groupId>
-          <artifactId>jboss-common-logging-spi</artifactId>
-        </exclusion>        
-      </exclusions>       
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jboss-vfs</artifactId>
-      <version>2.0.0.Beta18</version>    
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jboss-mdr</artifactId>
-      <version>2.0.0.Beta15</version>
-    </dependency>
-    
-    <dependency>
-      <groupId>javax.xml.bind</groupId>
-      <artifactId>jaxb-api</artifactId>
-      <version>2.1</version>    
-    </dependency>
-    
-    <!-- Test Dependencies -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>3.8.1</version>
-      <scope>test</scope>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss.test</groupId>
-      <artifactId>jboss-test</artifactId>
-      <version>1.1.0.GA</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-</project>

Copied: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/pom.xml (from rev 76034, projects/metadata/trunk/pom.xml)
===================================================================
--- projects/metadata/tags/jboss-metadata-1.0.0.Beta30/pom.xml	                        (rev 0)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/pom.xml	2008-07-20 21:47:50 UTC (rev 76035)
@@ -0,0 +1,167 @@
+<!--
+  vi:ts=2:sw=2:expandtab
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.jboss</groupId>
+    <artifactId>jboss-parent</artifactId>
+    <version>4.0.CR1</version>
+  </parent>
+  <groupId>org.jboss.metadata</groupId>
+  <artifactId>jboss-metadata</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0.Beta30</version>
+  <name>JBoss Metadata</name>
+  <url>http://www.jboss.org</url>
+  <description>The common JavaEE metadata classes</description>
+  <scm>
+    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/tags/jboss-metadata-1.0.0.Beta30</connection>
+    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/tags/jboss-metadata-1.0.0.Beta30</developerConnection>
+  </scm>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.4.3</version>
+        <configuration>
+          <printSummary>true</printSummary>
+          <disableXmlReport>false</disableXmlReport>
+          <redirectTestOutputToFile>true</redirectTestOutputToFile>
+          <includes>
+            <include>**/*TestCase.java</include>
+          </includes>
+        </configuration>
+      </plugin>      
+    </plugins>
+  </build>
+
+  <!-- 
+    Eclipse settings have been removed from parent. This needs to be
+    done via an eclipse profile.
+    http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085896#4085896 
+    -->
+  <profiles>
+    <profile>
+      <id>eclipse</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-eclipse-plugin</artifactId>
+            <configuration>
+              <downloadSources>true</downloadSources>
+              <buildOutputDirectory>target/eclipse-classes</buildOutputDirectory>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
+  <!-- Compile Dependencies -->
+  <dependencies>
+
+    <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-spi</artifactId>
+      <version>2.0.5.GA</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-core</artifactId>
+      <version>2.2.7.GA</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.ejb3</groupId>
+      <artifactId>jboss-ejb3-ext-api</artifactId>
+      <version>0.4</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.javaee</groupId>
+      <artifactId>jboss-ejb-api</artifactId>
+      <version>3.0.0.CR1</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.javaee</groupId>
+      <artifactId>jboss-jms-api</artifactId>
+      <version>1.1.0.CR1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss.javaee</groupId>
+      <artifactId>jboss-persistence-api</artifactId>
+      <version>3.0.0.CR1</version>
+    </dependency>
+      
+    <dependency>
+      <groupId>org.jboss.javaee</groupId>
+      <artifactId>jboss-transaction-api</artifactId>
+      <version>1.0.1.CR1</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.ws</groupId>
+      <artifactId>jbossws-spi</artifactId>
+      <version>1.0.2.GA</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-jaxws</artifactId>
+      <version>2.0.1.GA</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jbossxb</artifactId>
+      <version>2.0.0.CR9</version>
+      <exclusions>
+        <exclusion>
+          <groupId>jboss</groupId>
+          <artifactId>jboss-common-logging-spi</artifactId>
+        </exclusion>        
+      </exclusions>       
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-vfs</artifactId>
+      <version>2.0.0.Beta18</version>    
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-mdr</artifactId>
+      <version>2.0.0.Beta15</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>javax.xml.bind</groupId>
+      <artifactId>jaxb-api</artifactId>
+      <version>2.1</version>    
+    </dependency>
+    
+    <!-- Test Dependencies -->
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.test</groupId>
+      <artifactId>jboss-test</artifactId>
+      <version>1.1.0.GA</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+</project>

Deleted: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/BasicJndiBindingPolicy.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/BasicJndiBindingPolicy.java	2008-07-20 13:50:28 UTC (rev 76027)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/BasicJndiBindingPolicy.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -1,224 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.ejb.jboss.jndipolicy.plugins;
-
-import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
-import org.jboss.metadata.ejb.jboss.JBossEntityBeanMetaData;
-import org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
-
-/**
- * A basic implementation of DefaultJndiBindingPolicy that uses a base jndi
- * name and generates the following from that:
- * getDefaultLocalHomeJndiName : baseJndiName + "/" + KnownInterfaces.LOCAL_HOME
- * getDefaultLocalJndiName : baseJndiName + "/" + KnownInterfaces.LOCAL
- * getDefaultRemoteHomeJndiName : baseJndiName + "/" + KnownInterfaces.HOME
- * getDefaultRemoteJndiName : baseJndiName + "/" + KnownInterfaces.REMOTE
- * getJndiName : baseJndiName
- * getJndiName(String iface) : baseJndiName + "/" + iface (if iface is not in KnownInterfaces)
- * 
- * @author Scott.Stark at jboss.org
- * @version $Revision:$
- */
-public class BasicJndiBindingPolicy implements DefaultJndiBindingPolicy
-{
-   public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
-   {
-      String baseJndiName = this.getBaseJndiName(summary);
-      return baseJndiName + "/" + KnownInterfaces.LOCAL_HOME;
-   }
-
-   public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
-   {
-      String baseJndiName = this.getBaseJndiName(summary);
-      return baseJndiName + "/" + KnownInterfaces.LOCAL;
-   }
-
-   public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
-   {
-      String baseJndiName = this.getBaseJndiName(summary);
-      return baseJndiName + "/" + KnownInterfaces.HOME;
-   }
-
-   public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
-   {
-      String baseJndiName = this.getBaseJndiName(summary);
-      return baseJndiName + "/" + KnownInterfaces.REMOTE;
-   }
-
-   public String getJndiName(EjbDeploymentSummary summary)
-   {
-      String baseJndiName = this.getBaseJndiName(summary);
-      return baseJndiName;
-   }
-
-   public String getJndiName(EjbDeploymentSummary summary, String iface, KnownInterfaceType ifaceType)
-   {
-      String jndiName = null;
-      if (KnownInterfaces.isKnownInterface(iface))
-         iface = null;
-
-      String baseJndiName = this.getBaseJndiName(summary);
-
-      if (ifaceType == KnownInterfaceType.UNKNOWN)
-      {
-         if (iface == null)
-            jndiName = baseJndiName;
-         else
-            jndiName = baseJndiName + "/" + iface;
-      }
-      else
-      {
-         boolean is3x = summary.getBeanMD().getJBossMetaData().isEJB3x();
-
-         if (is3x)
-         {
-            // EJB 3
-            switch (ifaceType)
-            {
-               // base-name/local(-iface)
-               case BUSINESS_LOCAL :
-                  
-                  if (iface == null)
-                     jndiName = baseJndiName + "/" + ifaceType.toSuffix();
-                  else
-                     jndiName = baseJndiName + "/" + ifaceType.toSuffix() + "-" + iface;
-                  
-                  break;
-                  
-               // base-name/remote(-iface) || mappedName
-               case BUSINESS_REMOTE :
-               case UNKNOWN :
-                  
-                  JBossEnterpriseBeanMetaData md = summary.getBeanMD();
-                  String mappedName = null;
-                  if (md.isSession())
-                  {
-                     mappedName = ((JBossSessionBeanMetaData) md).getJndiName();
-                  }
-                  String setMappedName = md.getMappedName();
-                  if (setMappedName != null && setMappedName.trim().length() > 0)
-                  {
-                     mappedName = md.getMappedName();
-                  }
-                  
-                  // JBMETA-75
-                  // Use mappedName if it's specified
-                  if(mappedName!=null && iface==null){
-                     jndiName = mappedName;
-                  }
-                  // JBMETA-75
-                  // Fall back on base JNDI Name + type suffix
-                  else if (iface == null)
-                     jndiName = baseJndiName + "/" + ifaceType.toSuffix();
-                  else
-                     jndiName = baseJndiName + "/" + ifaceType.toSuffix() + "-" + iface;
-                  break;
-               case LOCAL_HOME :
-                  // base-name / (local|remote)Home
-                  jndiName = baseJndiName + "/" + ifaceType.toSuffix();
-                  break;
-               case REMOTE_HOME :
-                  // base-name / (local|remote)Home
-                  jndiName = baseJndiName + "/" + ifaceType.toSuffix();
-                  break;
-            }
-         }
-         else
-         {
-            // EJB 2.x
-            switch (ifaceType)
-            {
-               // The local home jndi name (same for getLocalJndiName and getLocalHomeJndiName)
-               case BUSINESS_LOCAL :
-               case LOCAL_HOME :
-                  // Use the bean local jndi name or a generated name for ejb2.x local homes 
-                  jndiName = summary.getBeanMD().getLocalJndiName();
-                  if (jndiName != null && jndiName.trim().length() > 0)
-                  {
-                     return jndiName;
-                  }
-                  String ejbName = summary.getBeanMD().getEjbName();
-                  jndiName = "local/" + ejbName + '@' + System.identityHashCode(ejbName);
-                  break;
-
-               // The home jndi name (same for getJndiName and getHomeJndiName) 
-               case BUSINESS_REMOTE :
-               case REMOTE_HOME :
-                  // Don't append the iface suffix for ejb2.x homes
-                  jndiName = baseJndiName;
-                  break;
-            }
-         }
-
-      }
-      
-      return jndiName;
-   }
-
-   private String getBaseJndiName(EjbDeploymentSummary summary)
-   {
-      StringBuffer baseName = new StringBuffer();
-
-      JBossEnterpriseBeanMetaData md = summary.getBeanMD();
-      assert md != null : JBossEnterpriseBeanMetaData.class.getSimpleName() + " is not set for " + summary;
-
-      //TODO Ugly, should be using polymorphism not runtime type checks w/ casting
-      if (md.isSession())
-      {
-         assert md instanceof JBossSessionBeanMetaData : "Metadata reports as Session Bean but is not assignable to "
-               + JBossSessionBeanMetaData.class.getName();
-         JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData) md;
-         baseName.append(smd.getEjbName());
-      }
-      else if (md.isEntity())
-      {
-         if (baseName == null || baseName.length() == 0)
-         {
-            String jndiName = ((JBossEntityBeanMetaData) summary.getBeanMD()).getJndiName();
-            baseName.append(jndiName.trim());
-         }
-      }
-
-      // Still no baseName
-      if (baseName == null || baseName.length() == 0)
-      {
-         // Use the EJB Name
-         baseName.append(summary.getBeanMD().getEjbName());
-      }
-
-      // Prepend the deployment scope base name, if defined
-      String deploymentScopeBaseName = summary.getDeploymentScopeBaseName();
-      if (deploymentScopeBaseName != null && deploymentScopeBaseName.trim().length() > 0)
-      {
-         deploymentScopeBaseName = deploymentScopeBaseName.trim();
-         baseName.insert(0, '/');
-         baseName.insert(0, deploymentScopeBaseName);
-      }
-
-      return baseName.toString();
-   }
-
-}

Copied: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/BasicJndiBindingPolicy.java (from rev 76032, projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/BasicJndiBindingPolicy.java)
===================================================================
--- projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/BasicJndiBindingPolicy.java	                        (rev 0)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/BasicJndiBindingPolicy.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -0,0 +1,230 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.ejb.jboss.jndipolicy.plugins;
+
+import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
+import org.jboss.metadata.ejb.jboss.JBossEntityBeanMetaData;
+import org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
+
+/**
+ * A basic implementation of DefaultJndiBindingPolicy that uses a base jndi
+ * name and generates the following from that:
+ * getDefaultLocalHomeJndiName : baseJndiName + "/" + KnownInterfaces.LOCAL_HOME
+ * getDefaultLocalJndiName : baseJndiName + "/" + KnownInterfaces.LOCAL
+ * getDefaultRemoteHomeJndiName : baseJndiName + "/" + KnownInterfaces.HOME
+ * getDefaultRemoteJndiName : baseJndiName + "/" + KnownInterfaces.REMOTE
+ * getJndiName : baseJndiName
+ * getJndiName(String iface) : baseJndiName + "/" + iface (if iface is not in KnownInterfaces)
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class BasicJndiBindingPolicy implements DefaultJndiBindingPolicy
+{
+
+   private static final long serialVersionUID = 1L;
+
+   public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
+   {
+      String baseJndiName = this.getBaseJndiName(summary);
+      return baseJndiName + "/" + KnownInterfaces.LOCAL_HOME;
+   }
+
+   public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
+   {
+      String baseJndiName = this.getBaseJndiName(summary);
+      return baseJndiName + "/" + KnownInterfaces.LOCAL;
+   }
+
+   public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
+   {
+      String baseJndiName = this.getBaseJndiName(summary);
+      return baseJndiName + "/" + KnownInterfaces.HOME;
+   }
+
+   public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
+   {
+      String baseJndiName = this.getBaseJndiName(summary);
+      return baseJndiName + "/" + KnownInterfaces.REMOTE;
+   }
+
+   public String getJndiName(EjbDeploymentSummary summary)
+   {
+      String baseJndiName = this.getBaseJndiName(summary);
+      return baseJndiName;
+   }
+
+   public String getJndiName(EjbDeploymentSummary summary, String iface, KnownInterfaceType ifaceType)
+   {
+      String jndiName = null;
+      if (KnownInterfaces.isKnownInterface(iface))
+         iface = null;
+
+      String baseJndiName = this.getBaseJndiName(summary);
+
+      if (ifaceType == KnownInterfaceType.UNKNOWN)
+      {
+         if (iface == null)
+            jndiName = baseJndiName;
+         else
+            jndiName = baseJndiName + "/" + iface;
+      }
+      else
+      {
+         boolean is3x = summary.getBeanMD().getJBossMetaData().isEJB3x();
+
+         if (is3x)
+         {
+            // EJB 3
+            switch (ifaceType)
+            {
+               // base-name/local(-iface)
+               case BUSINESS_LOCAL :
+                  
+                  if (iface == null)
+                     jndiName = baseJndiName + "/" + ifaceType.toSuffix();
+                  else
+                     jndiName = baseJndiName + "/" + ifaceType.toSuffix() + "-" + iface;
+                  
+                  break;
+                  
+               // base-name/remote(-iface) || mappedName
+               case BUSINESS_REMOTE :
+               case UNKNOWN :
+                  
+                  JBossEnterpriseBeanMetaData md = summary.getBeanMD();
+                  String mappedName = null;
+                  if (md.isSession())
+                  {
+                     mappedName = ((JBossSessionBeanMetaData) md).getJndiName();
+                  }
+                  String setMappedName = md.getMappedName();
+                  if (setMappedName != null && setMappedName.trim().length() > 0)
+                  {
+                     mappedName = md.getMappedName();
+                  }
+                  
+                  // JBMETA-75
+                  // Use mappedName if it's specified
+                  if(mappedName!=null && iface==null){
+                     jndiName = mappedName;
+                  }
+                  // JBMETA-75
+                  // Fall back on base JNDI Name + type suffix
+                  else if (iface == null)
+                     jndiName = baseJndiName + "/" + ifaceType.toSuffix();
+                  else
+                     jndiName = baseJndiName + "/" + ifaceType.toSuffix() + "-" + iface;
+                  break;
+               case LOCAL_HOME :
+                  // base-name / (local|remote)Home
+                  jndiName = baseJndiName + "/" + ifaceType.toSuffix();
+                  break;
+               case REMOTE_HOME :
+                  // base-name / (local|remote)Home
+                  jndiName = baseJndiName + "/" + ifaceType.toSuffix();
+                  break;
+            }
+         }
+         else
+         {
+            // EJB 2.x
+            switch (ifaceType)
+            {
+               // The local home jndi name (same for getLocalJndiName and getLocalHomeJndiName)
+               case BUSINESS_LOCAL :
+               case LOCAL_HOME :
+                  // Use the bean local jndi name or a generated name for ejb2.x local homes 
+                  jndiName = summary.getBeanMD().getLocalJndiName();
+                  if (jndiName != null && jndiName.trim().length() > 0)
+                  {
+                     return jndiName;
+                  }
+                  String ejbName = summary.getBeanMD().getEjbName();
+                  jndiName = "local/" + ejbName + '@' + System.identityHashCode(ejbName);
+                  break;
+
+               // The home jndi name (same for getJndiName and getHomeJndiName) 
+               case BUSINESS_REMOTE :
+               case REMOTE_HOME :
+                  // Don't append the iface suffix for ejb2.x homes
+                  jndiName = baseJndiName;
+                  break;
+            }
+         }
+
+      }
+      
+      return jndiName;
+   }
+
+   private String getBaseJndiName(EjbDeploymentSummary summary)
+   {
+      StringBuffer baseName = new StringBuffer();
+
+      JBossEnterpriseBeanMetaData md = summary.getBeanMD();
+      assert md != null : JBossEnterpriseBeanMetaData.class.getSimpleName() + " is not set for " + summary;
+
+      //TODO Ugly, should be using polymorphism not runtime type checks w/ casting
+      if (md.isSession())
+      {
+         assert md instanceof JBossSessionBeanMetaData : "Metadata reports as Session Bean but is not assignable to "
+               + JBossSessionBeanMetaData.class.getName();
+         JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData) md;
+         baseName.append(smd.getEjbName());
+      }
+      else if (md.isEntity())
+      {
+         if (baseName == null || baseName.length() == 0)
+         {
+            String jndiName = ((JBossEntityBeanMetaData) summary.getBeanMD()).getJndiName();
+            if (jndiName != null && jndiName.length() > 0)
+            {
+               baseName.append(jndiName.trim());
+            }
+         }
+      }
+
+      // Still no baseName
+      if (baseName == null || baseName.length() == 0)
+      {
+         // Use the EJB Name
+         baseName.append(summary.getBeanMD().getEjbName());
+      }
+
+      // Prepend the deployment scope base name, if defined
+      String deploymentScopeBaseName = summary.getDeploymentScopeBaseName();
+      if (deploymentScopeBaseName != null && deploymentScopeBaseName.trim().length() > 0)
+      {
+         deploymentScopeBaseName = deploymentScopeBaseName.trim();
+         baseName.insert(0, '/');
+         baseName.insert(0, deploymentScopeBaseName);
+      }
+
+      return baseName.toString();
+   }
+
+}

Deleted: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/EjbNameJndiBindingPolicy.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/EjbNameJndiBindingPolicy.java	2008-07-20 13:50:28 UTC (rev 76027)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/EjbNameJndiBindingPolicy.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -1,103 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.ejb.jboss.jndipolicy.plugins;
-
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
-
-/**
- * A default jndi policy based on the ejb name.
- * 
- * @author Scott.Stark at jboss.org
- * @version $Revision:$
- */
-public class EjbNameJndiBindingPolicy
-   implements DefaultJndiBindingPolicy
-{
-
-   /**
-    * @return ejb-name + "LocalHome";
-    */
-   public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
-   {
-      return summary.getBeanMD().getEjbName() + "LocalHome";
-   }
-   /**
-    * @return ejb-name + "Local"
-    */
-   public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
-   {
-      return summary.getBeanMD().getEjbName() + "Local";
-   }
-   /**
-    * @return ejb-name + "Home"
-    */
-   public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
-   {
-      return summary.getBeanMD().getEjbName() + "Home";
-   }
-   /**
-    * @return ejb-name + "Remote"
-    */
-   public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
-   {
-      return summary.getBeanMD().getEjbName() + "Remote";
-   }
-   /**
-    * @return ejb-name
-    */
-   public String getJndiName(EjbDeploymentSummary summary)
-   {
-      return summary.getBeanMD().getEjbName();
-   }
-   /**
-    * @return ejb-name + "/" + iface
-    */
-   public String getJndiName(EjbDeploymentSummary summary, String iface,
-         KnownInterfaceType ifaceType)
-   {
-      String jndiName = null;
-      if(iface == null)
-         jndiName = getJndiName(summary);
-      else if(KnownInterfaces.isKnownInterface(iface))
-      {
-         if(KnownInterfaces.HOME.equalsIgnoreCase(iface))
-            jndiName = getDefaultRemoteHomeJndiName(summary);
-         else if(KnownInterfaces.LOCAL.equalsIgnoreCase(iface))
-            jndiName = getDefaultLocalJndiName(summary);
-         else if(KnownInterfaces.LOCAL_HOME.equalsIgnoreCase(iface))
-            jndiName = getDefaultLocalHomeJndiName(summary);
-         else if(KnownInterfaces.REMOTE.equalsIgnoreCase(iface))
-            jndiName = getDefaultRemoteJndiName(summary);
-         else
-            throw new IllegalStateException("Unknown iterface type: "+iface);
-      }
-      else
-      {
-         jndiName = summary.getBeanMD().getEjbName() + "/" + iface;
-      }
-      return jndiName;
-   }
-
-}

Copied: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/EjbNameJndiBindingPolicy.java (from rev 76032, projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/EjbNameJndiBindingPolicy.java)
===================================================================
--- projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/EjbNameJndiBindingPolicy.java	                        (rev 0)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/EjbNameJndiBindingPolicy.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -0,0 +1,104 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.ejb.jboss.jndipolicy.plugins;
+
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
+
+/**
+ * A default jndi policy based on the ejb name.
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class EjbNameJndiBindingPolicy
+   implements DefaultJndiBindingPolicy
+{
+
+   private static final long serialVersionUID = 1L;
+   /**
+    * @return ejb-name + "LocalHome";
+    */
+   public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
+   {
+      return summary.getBeanMD().getEjbName() + "LocalHome";
+   }
+   /**
+    * @return ejb-name + "Local"
+    */
+   public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
+   {
+      return summary.getBeanMD().getEjbName() + "Local";
+   }
+   /**
+    * @return ejb-name + "Home"
+    */
+   public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
+   {
+      return summary.getBeanMD().getEjbName() + "Home";
+   }
+   /**
+    * @return ejb-name + "Remote"
+    */
+   public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
+   {
+      return summary.getBeanMD().getEjbName() + "Remote";
+   }
+   /**
+    * @return ejb-name
+    */
+   public String getJndiName(EjbDeploymentSummary summary)
+   {
+      return summary.getBeanMD().getEjbName();
+   }
+   /**
+    * @return ejb-name + "/" + iface
+    */
+   public String getJndiName(EjbDeploymentSummary summary, String iface,
+         KnownInterfaceType ifaceType)
+   {
+      String jndiName = null;
+      if(iface == null)
+         jndiName = getJndiName(summary);
+      else if(KnownInterfaces.isKnownInterface(iface))
+      {
+         if(KnownInterfaces.HOME.equalsIgnoreCase(iface))
+            jndiName = getDefaultRemoteHomeJndiName(summary);
+         else if(KnownInterfaces.LOCAL.equalsIgnoreCase(iface))
+            jndiName = getDefaultLocalJndiName(summary);
+         else if(KnownInterfaces.LOCAL_HOME.equalsIgnoreCase(iface))
+            jndiName = getDefaultLocalHomeJndiName(summary);
+         else if(KnownInterfaces.REMOTE.equalsIgnoreCase(iface))
+            jndiName = getDefaultRemoteJndiName(summary);
+         else
+            throw new IllegalStateException("Unknown iterface type: "+iface);
+      }
+      else
+      {
+         jndiName = summary.getBeanMD().getEjbName() + "/" + iface;
+      }
+      return jndiName;
+   }
+
+}

Deleted: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/SessionJndiBindingPolicy.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/SessionJndiBindingPolicy.java	2008-07-20 13:50:28 UTC (rev 76027)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/SessionJndiBindingPolicy.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -1,144 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.ejb.jboss.jndipolicy.plugins;
-
-import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
-import org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
-
-/**
- * Default session bean jndi naming policy
- * 
- * @author Scott.Stark at jboss.org
- * @version $Revision:$
- */
-public class SessionJndiBindingPolicy
-   implements DefaultJndiBindingPolicy
-{
-
-   public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
-   {
-      JBossEnterpriseBeanMetaData beanMD = summary.getBeanMD();
-      String name = null;
-      if(beanMD instanceof JBossSessionBeanMetaData)
-      {
-         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
-         name = sbeanMD.getLocalHomeJndiName();
-      }
-      if(name == null)
-      {
-         name = beanMD.getLocalJndiName();
-      }
-      return name;
-   }
-
-   public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
-   {
-      JBossEnterpriseBeanMetaData beanMD = summary.getBeanMD();
-      String name = null;
-      if(beanMD instanceof JBossSessionBeanMetaData)
-      {
-         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
-         name = sbeanMD.getLocalJndiName();
-      }
-      if(name == null)
-      {
-         name = beanMD.getLocalJndiName();
-      }
-      return name;
-   }
-
-   public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
-   {
-      JBossEnterpriseBeanMetaData beanMD = summary.getBeanMD();
-      String name = null;
-      if(beanMD instanceof JBossSessionBeanMetaData)
-      {
-         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
-         name = sbeanMD.getHomeJndiName();
-         if (name == null)
-            name = sbeanMD.getJndiName();
-         if(name == null)
-            name = sbeanMD.getMappedName();
-         if(name == null && sbeanMD.getRemoteBindings() != null && sbeanMD.getRemoteBindings().size() > 0)
-            name = sbeanMD.getRemoteBindings().get(0).getJndiName();
-      }
-      if(name == null)
-      {
-         name = beanMD.getEjbName() + "Remote";
-      }
-      return name;
-   }
-
-   public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
-   {
-      JBossEnterpriseBeanMetaData beanMD = summary.getBeanMD();
-      String name = null;
-      if(beanMD instanceof JBossSessionBeanMetaData)
-      {
-         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
-         name = sbeanMD.getJndiName();
-         if(name == null)
-            name = sbeanMD.getMappedName();
-         if(name == null && sbeanMD.getRemoteBindings() != null && sbeanMD.getRemoteBindings().size() > 0)
-            name = sbeanMD.getRemoteBindings().get(0).getJndiName();
-      }
-      if(name == null)
-      {
-         name = beanMD.getEjbName() + "Remote";
-      }
-      return name;
-   }
-
-   public String getJndiName(EjbDeploymentSummary summary)
-   {
-      JBossEnterpriseBeanMetaData beanMD = summary.getBeanMD();
-      String name = null;
-      if(beanMD instanceof JBossSessionBeanMetaData)
-      {
-         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
-         name = sbeanMD.getHomeJndiName();
-         if (name == null)
-            name = sbeanMD.getJndiName();
-         if(name == null)
-            name = sbeanMD.getMappedName();
-         if(name == null && sbeanMD.getRemoteBindings() != null && sbeanMD.getRemoteBindings().size() > 0)
-            name = sbeanMD.getRemoteBindings().get(0).getJndiName();
-      }
-      if(name == null)
-      {
-         name = beanMD.getEjbName();
-      }
-      return name;
-   }
-   /**
-    * @return ejb-name + "/" + iface
-    */
-   public String getJndiName(EjbDeploymentSummary summary, String iface,
-         KnownInterfaceType ifaceType)
-   {
-      return summary.getBeanMD().getEjbName() + "/" + iface;
-   }
-
-}

Copied: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/SessionJndiBindingPolicy.java (from rev 76032, projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/SessionJndiBindingPolicy.java)
===================================================================
--- projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/SessionJndiBindingPolicy.java	                        (rev 0)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/plugins/SessionJndiBindingPolicy.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -0,0 +1,146 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.ejb.jboss.jndipolicy.plugins;
+
+import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
+import org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
+
+/**
+ * Default session bean jndi naming policy
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class SessionJndiBindingPolicy
+   implements DefaultJndiBindingPolicy
+{
+
+   private static final long serialVersionUID = 1L;
+   
+   public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
+   {
+      JBossEnterpriseBeanMetaData beanMD = summary.getBeanMD();
+      String name = null;
+      if(beanMD instanceof JBossSessionBeanMetaData)
+      {
+         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
+         name = sbeanMD.getLocalHomeJndiName();
+      }
+      if(name == null)
+      {
+         name = beanMD.getLocalJndiName();
+      }
+      return name;
+   }
+
+   public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
+   {
+      JBossEnterpriseBeanMetaData beanMD = summary.getBeanMD();
+      String name = null;
+      if(beanMD instanceof JBossSessionBeanMetaData)
+      {
+         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
+         name = sbeanMD.getLocalJndiName();
+      }
+      if(name == null)
+      {
+         name = beanMD.getLocalJndiName();
+      }
+      return name;
+   }
+
+   public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
+   {
+      JBossEnterpriseBeanMetaData beanMD = summary.getBeanMD();
+      String name = null;
+      if(beanMD instanceof JBossSessionBeanMetaData)
+      {
+         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
+         name = sbeanMD.getHomeJndiName();
+         if (name == null)
+            name = sbeanMD.getJndiName();
+         if(name == null)
+            name = sbeanMD.getMappedName();
+         if(name == null && sbeanMD.getRemoteBindings() != null && sbeanMD.getRemoteBindings().size() > 0)
+            name = sbeanMD.getRemoteBindings().get(0).getJndiName();
+      }
+      if(name == null)
+      {
+         name = beanMD.getEjbName() + "Remote";
+      }
+      return name;
+   }
+
+   public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
+   {
+      JBossEnterpriseBeanMetaData beanMD = summary.getBeanMD();
+      String name = null;
+      if(beanMD instanceof JBossSessionBeanMetaData)
+      {
+         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
+         name = sbeanMD.getJndiName();
+         if(name == null)
+            name = sbeanMD.getMappedName();
+         if(name == null && sbeanMD.getRemoteBindings() != null && sbeanMD.getRemoteBindings().size() > 0)
+            name = sbeanMD.getRemoteBindings().get(0).getJndiName();
+      }
+      if(name == null)
+      {
+         name = beanMD.getEjbName() + "Remote";
+      }
+      return name;
+   }
+
+   public String getJndiName(EjbDeploymentSummary summary)
+   {
+      JBossEnterpriseBeanMetaData beanMD = summary.getBeanMD();
+      String name = null;
+      if(beanMD instanceof JBossSessionBeanMetaData)
+      {
+         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
+         name = sbeanMD.getHomeJndiName();
+         if (name == null)
+            name = sbeanMD.getJndiName();
+         if(name == null)
+            name = sbeanMD.getMappedName();
+         if(name == null && sbeanMD.getRemoteBindings() != null && sbeanMD.getRemoteBindings().size() > 0)
+            name = sbeanMD.getRemoteBindings().get(0).getJndiName();
+      }
+      if(name == null)
+      {
+         name = beanMD.getEjbName();
+      }
+      return name;
+   }
+   /**
+    * @return ejb-name + "/" + iface
+    */
+   public String getJndiName(EjbDeploymentSummary summary, String iface,
+         KnownInterfaceType ifaceType)
+   {
+      return summary.getBeanMD().getEjbName() + "/" + iface;
+   }
+
+}

Deleted: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/spi/DefaultJndiBindingPolicy.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/spi/DefaultJndiBindingPolicy.java	2008-07-20 13:50:28 UTC (rev 76027)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/spi/DefaultJndiBindingPolicy.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -1,63 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.ejb.jboss.jndipolicy.spi;
-
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
-
-/**
- * A jndi name policy spi for obtaining jndi names not specified in metadata.
- * 
- * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
- * @author Scott.Stark at jboss.org
- * @version $Revision$
- */
-public interface DefaultJndiBindingPolicy
-{
-   /**
-    * Returns the JNDI name that should be assigned to this deployment
-    * based on the information contained in the specified summary
-    * 
-    * @param summary
-    * @return
-    */
-   String getJndiName(EjbDeploymentSummary summary);
-   /**
-    * Get the jndi name to use as the reference link target and proxy binding
-    * location for a given ejb interface.
-    * 
-    * @param summary - the deployment summary information for the ejb in question.
-    * @param iface - the fully qualified name of the interface, may be null.
-    * @param ifaceType - the classification of iface to one of the known
-    *    ejb interface types
-    * @return
-    */
-   String getJndiName(EjbDeploymentSummary summary, String iface, KnownInterfaceType ifaceType);
-
-   String getDefaultRemoteJndiName(EjbDeploymentSummary summary);
-
-   String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary);
-
-   String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary);
-
-   String getDefaultLocalJndiName(EjbDeploymentSummary summary);
-
-}

Copied: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/spi/DefaultJndiBindingPolicy.java (from rev 76028, projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/spi/DefaultJndiBindingPolicy.java)
===================================================================
--- projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/spi/DefaultJndiBindingPolicy.java	                        (rev 0)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/main/java/org/jboss/metadata/ejb/jboss/jndipolicy/spi/DefaultJndiBindingPolicy.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.ejb.jboss.jndipolicy.spi;
+
+import java.io.Serializable;
+
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
+
+/**
+ * A jndi name policy spi for obtaining jndi names not specified in metadata.
+ * 
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public interface DefaultJndiBindingPolicy extends Serializable
+{
+   /**
+    * Returns the JNDI name that should be assigned to this deployment
+    * based on the information contained in the specified summary
+    * 
+    * @param summary
+    * @return
+    */
+   String getJndiName(EjbDeploymentSummary summary);
+   /**
+    * Get the jndi name to use as the reference link target and proxy binding
+    * location for a given ejb interface.
+    * 
+    * @param summary - the deployment summary information for the ejb in question.
+    * @param iface - the fully qualified name of the interface, may be null.
+    * @param ifaceType - the classification of iface to one of the known
+    *    ejb interface types
+    * @return
+    */
+   String getJndiName(EjbDeploymentSummary summary, String iface, KnownInterfaceType ifaceType);
+
+   String getDefaultRemoteJndiName(EjbDeploymentSummary summary);
+
+   String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary);
+
+   String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary);
+
+   String getDefaultLocalJndiName(EjbDeploymentSummary summary);
+
+}

Deleted: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/annotation/ejb3/ext/api/MyStatefulBean.java
===================================================================
--- projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3/ext/api/MyStatefulBean.java	2008-07-20 13:50:28 UTC (rev 76027)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/annotation/ejb3/ext/api/MyStatefulBean.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -1,86 +0,0 @@
-package org.jboss.test.metadata.annotation.ejb3.ext.api;
-
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-import javax.ejb.Stateful;
-
-import org.jboss.ejb3.annotation.JndiBindingPolicy;
-import org.jboss.ejb3.annotation.LocalBinding;
-import org.jboss.ejb3.annotation.LocalHomeBinding;
-import org.jboss.ejb3.annotation.RemoteBinding;
-import org.jboss.ejb3.annotation.RemoteBindings;
-import org.jboss.ejb3.annotation.RemoteHomeBinding;
-import org.jboss.ejb3.annotation.SerializedConcurrentAccess;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
-
-/**
- * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
- at Stateful(name = "testStateful", mappedName = "testStatefulMappedName")
- at JndiBindingPolicy(policy = MyStatefulBean.TestJndiBindingPolicy.class)
- at RemoteBindings(value =
-{@RemoteBinding(jndiBinding = "testStatefulJndiRemoteBinding")})
- at RemoteHomeBinding(jndiBinding = "remoteHomeBinding")
- at LocalHomeBinding(jndiBinding = "localHomeBinding")
- at LocalBinding(jndiBinding = "localBinding")
- at SerializedConcurrentAccess
-public class MyStatefulBean
-{
-
-   public static class TestJndiBindingPolicy implements DefaultJndiBindingPolicy
-   {
-
-      public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
-      {
-         return null;
-      }
-
-      public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
-      {
-         return null;
-      }
-
-      public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
-      {
-         return null;
-      }
-
-      public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
-      {
-         return null;
-      }
-
-      public String getJndiName(EjbDeploymentSummary summary)
-      {
-         return null;
-      }
-
-      public String getJndiName(EjbDeploymentSummary summary, String iface, KnownInterfaceType ifaceType)
-      {
-         return null;
-      }
-   }
-}

Copied: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/annotation/ejb3/ext/api/MyStatefulBean.java (from rev 76033, projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3/ext/api/MyStatefulBean.java)
===================================================================
--- projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/annotation/ejb3/ext/api/MyStatefulBean.java	                        (rev 0)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/annotation/ejb3/ext/api/MyStatefulBean.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -0,0 +1,88 @@
+package org.jboss.test.metadata.annotation.ejb3.ext.api;
+
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+import javax.ejb.Stateful;
+
+import org.jboss.ejb3.annotation.JndiBindingPolicy;
+import org.jboss.ejb3.annotation.LocalBinding;
+import org.jboss.ejb3.annotation.LocalHomeBinding;
+import org.jboss.ejb3.annotation.RemoteBinding;
+import org.jboss.ejb3.annotation.RemoteBindings;
+import org.jboss.ejb3.annotation.RemoteHomeBinding;
+import org.jboss.ejb3.annotation.SerializedConcurrentAccess;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
+
+/**
+ * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
+ * @version $Revision$
+ */
+ at Stateful(name = "testStateful", mappedName = "testStatefulMappedName")
+ at JndiBindingPolicy(policy = MyStatefulBean.TestJndiBindingPolicy.class)
+ at RemoteBindings(value =
+{@RemoteBinding(jndiBinding = "testStatefulJndiRemoteBinding")})
+ at RemoteHomeBinding(jndiBinding = "remoteHomeBinding")
+ at LocalHomeBinding(jndiBinding = "localHomeBinding")
+ at LocalBinding(jndiBinding = "localBinding")
+ at SerializedConcurrentAccess
+public class MyStatefulBean
+{
+
+   public static class TestJndiBindingPolicy implements DefaultJndiBindingPolicy
+   {
+
+      private static final long serialVersionUID = 1L;
+
+      public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
+      {
+         return null;
+      }
+
+      public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
+      {
+         return null;
+      }
+
+      public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
+      {
+         return null;
+      }
+
+      public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
+      {
+         return null;
+      }
+
+      public String getJndiName(EjbDeploymentSummary summary)
+      {
+         return null;
+      }
+
+      public String getJndiName(EjbDeploymentSummary summary, String iface, KnownInterfaceType ifaceType)
+      {
+         return null;
+      }
+   }
+}

Deleted: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/jbmeta58/MyDefaultJndiBindingPolicy.java
===================================================================
--- projects/metadata/trunk/src/test/java/org/jboss/test/metadata/jbmeta58/MyDefaultJndiBindingPolicy.java	2008-07-20 13:50:28 UTC (rev 76027)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/jbmeta58/MyDefaultJndiBindingPolicy.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -1,65 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.metadata.jbmeta58;
-
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
-import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
-
-/**
- * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
- * @version $Revision: $
- */
-public class MyDefaultJndiBindingPolicy implements DefaultJndiBindingPolicy
-{
-
-   public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
-   {
-      return getJndiName(summary, "localHome", KnownInterfaceType.UNKNOWN);
-   }
-
-   public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
-   {
-      return getJndiName(summary, "local", KnownInterfaceType.UNKNOWN);
-   }
-
-   public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
-   {
-      return getJndiName(summary, "home", KnownInterfaceType.UNKNOWN);
-   }
-
-   public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
-   {
-      return getJndiName(summary, "remote", KnownInterfaceType.UNKNOWN);
-   }
-
-   public String getJndiName(EjbDeploymentSummary summary)
-   {
-      return getJndiName(summary, "default", KnownInterfaceType.UNKNOWN);
-   }
-
-   public String getJndiName(EjbDeploymentSummary summary, String iface, KnownInterfaceType ifaceType)
-   {
-      return summary.getDeploymentScopeBaseName() + "/" + summary.getDeploymentName() + "/"
-            + summary.getBeanMD().getEjbName() + "/" + iface;
-   }
-}

Copied: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/jbmeta58/MyDefaultJndiBindingPolicy.java (from rev 76033, projects/metadata/trunk/src/test/java/org/jboss/test/metadata/jbmeta58/MyDefaultJndiBindingPolicy.java)
===================================================================
--- projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/jbmeta58/MyDefaultJndiBindingPolicy.java	                        (rev 0)
+++ projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/jbmeta58/MyDefaultJndiBindingPolicy.java	2008-07-20 21:47:50 UTC (rev 76035)
@@ -0,0 +1,67 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.metadata.jbmeta58;
+
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class MyDefaultJndiBindingPolicy implements DefaultJndiBindingPolicy
+{
+
+   private static final long serialVersionUID = 1L;
+
+   public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
+   {
+      return getJndiName(summary, "localHome", KnownInterfaceType.UNKNOWN);
+   }
+
+   public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
+   {
+      return getJndiName(summary, "local", KnownInterfaceType.UNKNOWN);
+   }
+
+   public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
+   {
+      return getJndiName(summary, "home", KnownInterfaceType.UNKNOWN);
+   }
+
+   public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
+   {
+      return getJndiName(summary, "remote", KnownInterfaceType.UNKNOWN);
+   }
+
+   public String getJndiName(EjbDeploymentSummary summary)
+   {
+      return getJndiName(summary, "default", KnownInterfaceType.UNKNOWN);
+   }
+
+   public String getJndiName(EjbDeploymentSummary summary, String iface, KnownInterfaceType ifaceType)
+   {
+      return summary.getDeploymentScopeBaseName() + "/" + summary.getDeploymentName() + "/"
+            + summary.getBeanMD().getEjbName() + "/" + iface;
+   }
+}

Copied: projects/metadata/tags/jboss-metadata-1.0.0.Beta30/src/test/java/org/jboss/test/metadata/jbmeta77 (from rev 76028, projects/metadata/trunk/src/test/java/org/jboss/test/metadata/jbmeta77)




More information about the jboss-cvs-commits mailing list