/** * Set runtime default value for EjbDescriptor. */ private void computeRuntimeDefault(EjbDescriptor ejb) { String intfName = null; if ((ejb.getJndiName() == null) || (ejb.getJndiName().length() == 0)) { if (ejb.isRemoteInterfacesSupported() && ejb.isRemoteBusinessInterfacesSupported()) { // can't use a default. } else if (ejb.isRemoteInterfacesSupported()) { // For 2.x view, use the Home as the basis for the default intfName = ejb.getHomeClassName(); } else if (ejb.isRemoteBusinessInterfacesSupported()) { Set<String> classNames = ejb.getRemoteBusinessClassNames(); if (classNames.size() == 1) { intfName = (String)classNames.iterator().next(); } } } if( intfName != null ) { String jndiName = getDefaultEjbJndiName(intfName); ejb.setJndiName(jndiName); } if (!ejb.getUsesCallerIdentity()) { computeRunAsPrincipalDefault( ejb.getRunAsIdentity(), ejb.getApplication()); } }
Set methodAlls = new HashSet(); if (ejbDesc.isRemoteInterfacesSupported() || ejbDesc.isRemoteBusinessInterfacesSupported()) { methodAlls.add( new MethodDescriptor(MethodDescriptor.ALL_METHODS,
Set methodAlls = new HashSet(); if (ejbDesc.isRemoteInterfacesSupported() || ejbDesc.isRemoteBusinessInterfacesSupported()) { methodAlls.add( new MethodDescriptor(MethodDescriptor.ALL_METHODS,
if (isRemoteBusinessInterfacesSupported()) { for (String intf : getRemoteBusinessClassNames()) { addAllInterfaceMethodsIn(methods, classLoader.loadClass(intf), MethodDescriptor.EJB_REMOTE);
if (ejbDescriptor.isRemoteBusinessInterfacesSupported()) { for(String intf : ejbDescriptor.getRemoteBusinessClassNames()) { addAllInterfaceMethodsIn(methods, classLoader.loadClass(intf));
if (ejbDescriptor.isRemoteBusinessInterfacesSupported()) { for(String intf : ejbDescriptor.getRemoteBusinessClassNames()) { addAllInterfaceMethodsIn(methods, classLoader.loadClass(intf));
/** * Sets the ejb descriptor to which I refer. * @param ejbDescriptor the ejb descriptor referenced, null if it is unknow at this time */ public void setEjbDescriptor(EjbDescriptor ejbDescriptor) { if (this.ejbDescriptor != null) { this.ejbDescriptor.removeEjbReferencer(this); // remove previous referencer } this.ejbDescriptor=ejbDescriptor; if (ejbDescriptor!=null) { ejbDescriptor.addEjbReferencer(this); if (isLocal()) { if (!ejbDescriptor.isLocalInterfacesSupported() && !ejbDescriptor.isLocalBusinessInterfacesSupported() && !ejbDescriptor.isLocalBean()) { throw new RuntimeException(localStrings.getLocalString( "entreprise.deployment.invalidLocalInterfaceReference", "Trying to set an ejb-local-ref on an EJB while the EJB does not define local interfaces")); } } else { if (!ejbDescriptor.isRemoteInterfacesSupported() && !ejbDescriptor.isRemoteBusinessInterfacesSupported()) { throw new RuntimeException(localStrings.getLocalString( "entreprise.deployment.invalidRemoteInterfaceReference", "Trying to set an ejb-ref on an EJB, while the EJB does not define remote interfaces")); } } } }
/** * Sets the ejb descriptor to which I refer. * @param ejbDescriptor the ejb descriptor referenced, null if it is unknown at this time */ @Override public void setEjbDescriptor(EjbDescriptor ejbDescriptor) { if (this.ejbDescriptor != null) { this.ejbDescriptor.removeEjbReferencer(this); // remove previous referencer } this.ejbDescriptor=ejbDescriptor; if (ejbDescriptor!=null) { ejbDescriptor.addEjbReferencer(this); if (isLocal()) { if (!ejbDescriptor.isLocalInterfacesSupported() && !ejbDescriptor.isLocalBusinessInterfacesSupported() && !ejbDescriptor.isLocalBean()) { throw new RuntimeException(localStrings.getLocalString( "entreprise.deployment.invalidLocalInterfaceReference", "Trying to set an ejb-local-ref on an EJB while the EJB [{0}] does not define local interfaces", new Object[] {ejbDescriptor.getName()})); } } else { if (!ejbDescriptor.isRemoteInterfacesSupported() && !ejbDescriptor.isRemoteBusinessInterfacesSupported()) { throw new RuntimeException(localStrings.getLocalString( "entreprise.deployment.invalidRemoteInterfaceReference", "Trying to set an ejb-ref on an EJB, while the EJB [{0}] does not define remote interfaces", new Object[] {ejbDescriptor.getName()})); } } } }
if( next.isRemoteBusinessInterfacesSupported() ) { for(String nextIntf : next.getRemoteBusinessClassNames()) { addIntfInfo(intfInfoMap, nextIntf,
if( next.isRemoteBusinessInterfacesSupported() ) { for(String nextIntf : next.getRemoteBusinessClassNames()) { addIntfInfo(intfInfoMap, nextIntf,
if( ejbDescriptor.isRemoteBusinessInterfacesSupported() ) {
ejbDescriptor.isRemoteBusinessInterfacesSupported() ) {
ejbDescriptor.isRemoteBusinessInterfacesSupported() ) {
ejbDescriptor.isRemoteBusinessInterfacesSupported() ) { if( ejbDescriptor.isRemoteBusinessInterfacesSupported() ) {
if (ejb.isRemoteBusinessInterfacesSupported()) { int count = 0; for (String intf : ejb.getRemoteBusinessClassNames()) {