private String buildJavaGlobalName(String name) {
        StringBuffer bindingName = new StringBuffer();
        if (!moduleMetaData.getEJBApplicationMetaData().isStandaloneModule()) {
            bindingName.append(moduleMetaData.getEJBApplicationMetaData().getLogicalName());
            bindingName.append("/");
        }
        bindingName.append(moduleMetaData.ivLogicalName);
        bindingName.append("/");
        bindingName.append(name);
        return bindingName.toString();
    }
private String buildJavaGlobalName ( String name ) { StringBuffer bindingName = new StringBuffer ( ) ; if ( ! moduleMetaData . getEJBApplicationMetaData ( ) . isStandaloneModule ( ) ) { bindingName . append ( moduleMetaData . getEJBApplicationMetaData ( ) . getLogicalName ( ) ) ; bindingName . append ( "/" ) ; } bindingName . append ( moduleMetaData . ivLogicalName ) ; bindingName . append ( "/" ) ; bindingName . append ( name ) ; return bindingName . toString ( ) ; }
Creates the binding name used in the java:global lookup. The format is
<app>/<module>/<ejbname>[!<fully qualified interface name] for modules in an application and
<module>/<ejbname>[!<fully qualified interface name] for stand alone modules.

@param name The EJB name
@return the key for the lookup.