User: dsundstrom
Date: 01/07/09 13:52:19
Modified: src/main/org/jboss/metadata BeanMetaData.java
Log:
Added local jndi name, which is the jndi name to which the local home is bound.
Revision Changes Path
1.26 +19 -1 jboss/src/main/org/jboss/metadata/BeanMetaData.java
Index: BeanMetaData.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/metadata/BeanMetaData.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- BeanMetaData.java 2001/06/20 07:14:16 1.25
+++ BeanMetaData.java 2001/07/09 20:52:19 1.26
@@ -29,7 +29,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel OConnor</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Scott Stark</a>.
* @author <a href="mailto:[EMAIL PROTECTED]">Ole Husgaard</a>
- * @version $Revision: 1.25 $
+ * @version $Revision: 1.26 $
*/
public abstract class BeanMetaData extends MetaData {
// Constants -----------------------------------------------------
@@ -91,8 +91,12 @@
private ArrayList excludedMethods = new ArrayList();
// from jboss.xml
+
/** The JNDI name under with the home interface should be bound */
private String jndiName;
+
+ /** The JNDI name under with the local home interface should be bound */
+ private String localJndiName;
protected String configurationName;
private ConfigurationMetaData configuration;
private String securityProxy;
@@ -159,6 +163,17 @@
return jndiName;
}
+ /**
+ * Gets the JNDI name under with the local home interface should be bound.
+ * The default is local/<ejbName>
+ */
+ public String getLocalJndiName() {
+ if (localJndiName == null) {
+ localJndiName = "local/" + ejbName;
+ }
+ return localJndiName;
+ }
+
public String getConfigurationName()
{
if (configurationName == null) {
@@ -393,6 +408,9 @@
// set the jndi name, (optional)
jndiName = getElementContent(getOptionalChild(element, "jndi-name"));
+ // set the JNDI name under with the local home interface should be bound
(optional)
+ localJndiName = getElementContent(getOptionalChild(element,
"local-jndi-name"));
+
// set the configuration (optional)
configurationName = getElementContent(getOptionalChild(element,
"configuration-name"));
if (configurationName != null &&
getApplicationMetaData().getConfigurationMetaDataByName(configurationName) == null) {
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development