[jboss-cvs] JBossAS SVN: r66478 - in projects/metadata/trunk/src: test/java/org/jboss/test/metadata/ejb and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Oct 26 05:40:45 EDT 2007
Author: wolfc
Date: 2007-10-26 05:40:44 -0400 (Fri, 26 Oct 2007)
New Revision: 66478
Modified:
projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/JBossSessionBeanMetaData.java
projects/metadata/trunk/src/test/java/org/jboss/test/metadata/ejb/JBoss5xEverythingUnitTestCase.java
projects/metadata/trunk/src/test/resources/org/jboss/test/metadata/ejb/JBoss5xEverything_testEverything.xml
Log:
JBAS-4506: added home-jndi-name and local-home-jndi-name
Modified: projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/JBossSessionBeanMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/JBossSessionBeanMetaData.java 2007-10-26 09:17:14 UTC (rev 66477)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/ejb/jboss/JBossSessionBeanMetaData.java 2007-10-26 09:40:44 UTC (rev 66478)
@@ -102,6 +102,12 @@
/** The jndi name */
private String jndiName;
+ /** The home jndi name*/
+ private String homeJndiName;
+
+ /** The local home jndi name */
+ private String localHomeJndiName;
+
/** Whether to call by value */
private boolean callByValue;
@@ -176,6 +182,18 @@
this.home = home;
}
+ public String getHomeJndiName()
+ {
+ return homeJndiName;
+ }
+
+ public void setHomeJndiName(String homeJndiName)
+ {
+ assert homeJndiName != null : "homeJndiName is null";
+
+ this.homeJndiName = homeJndiName;
+ }
+
/**
* Get the remote.
*
@@ -245,6 +263,18 @@
this.local = local;
}
+ public String getLocalHomeJndiName()
+ {
+ return localHomeJndiName;
+ }
+
+ public void setLocalHomeJndiName(String localHomeJndiName)
+ {
+ assert localHomeJndiName != null : "localHomeJndiName is null";
+
+ this.localHomeJndiName = localHomeJndiName;
+ }
+
/**
* Get the businessLocals.
*
Modified: projects/metadata/trunk/src/test/java/org/jboss/test/metadata/ejb/JBoss5xEverythingUnitTestCase.java
===================================================================
--- projects/metadata/trunk/src/test/java/org/jboss/test/metadata/ejb/JBoss5xEverythingUnitTestCase.java 2007-10-26 09:17:14 UTC (rev 66477)
+++ projects/metadata/trunk/src/test/java/org/jboss/test/metadata/ejb/JBoss5xEverythingUnitTestCase.java 2007-10-26 09:40:44 UTC (rev 66478)
@@ -398,7 +398,9 @@
assertRemoteBindings(prefix, session.getRemoteBindings());
assertEquals(prefix + "JndiName", session.getJndiName());
+ assertEquals(prefix + "HomeJndiName", session.getHomeJndiName());
assertEquals(prefix + "LocalJndiName", session.getLocalJndiName());
+ assertEquals(prefix + "LocalHomeJndiName", session.getLocalHomeJndiName());
assertEquals(prefix + "ConfigurationName", session.getConfigurationName());
assertEquals(prefix + "SecurityProxy", session.getSecurityProxy());
assertEquals(prefix + "SecurityDomain", session.getSecurityDomain());
@@ -469,7 +471,9 @@
assertNull(session.getRemoteBindings());
assertNull(session.getJndiName());
+ assertNull(session.getHomeJndiName());
assertNull(session.getLocalJndiName());
+ assertNull(session.getLocalHomeJndiName());
assertNull(session.getConfigurationName());
assertNull(session.getSecurityProxy());
assertNull(session.getSecurityDomain());
Modified: projects/metadata/trunk/src/test/resources/org/jboss/test/metadata/ejb/JBoss5xEverything_testEverything.xml
===================================================================
--- projects/metadata/trunk/src/test/resources/org/jboss/test/metadata/ejb/JBoss5xEverything_testEverything.xml 2007-10-26 09:17:14 UTC (rev 66477)
+++ projects/metadata/trunk/src/test/resources/org/jboss/test/metadata/ejb/JBoss5xEverything_testEverything.xml 2007-10-26 09:40:44 UTC (rev 66478)
@@ -98,7 +98,9 @@
</remote-binding>
<jndi-name>session1JndiName</jndi-name>
+ <home-jndi-name>session1HomeJndiName</home-jndi-name>
<local-jndi-name>session1LocalJndiName</local-jndi-name>
+ <local-home-jndi-name>session1LocalHomeJndiName</local-home-jndi-name>
<call-by-value>true</call-by-value>
<exception-on-rollback>true</exception-on-rollback>
<timer-persistence>true</timer-persistence>
@@ -545,7 +547,9 @@
</remote-binding>
<jndi-name>session2JndiName</jndi-name>
+ <home-jndi-name>session2HomeJndiName</home-jndi-name>
<local-jndi-name>session2LocalJndiName</local-jndi-name>
+ <local-home-jndi-name>session2LocalHomeJndiName</local-home-jndi-name>
<call-by-value>false</call-by-value>
<exception-on-rollback>false</exception-on-rollback>
<timer-persistence>false</timer-persistence>
More information about the jboss-cvs-commits
mailing list