/** * return the name of the application to which the bean belongs * it will be the j2ee app name if the bean is part of a j2ee app * it will be the ejb module name if the bean is a stand-alone ejb module */ private String getApplicationName() { Application application = _ejbDescriptor.getApplication(); return application.getRegistrationName(); }
private String getAppId() { return wbd.getApplication().getRegistrationName(); }
private String getAppId() { return wbd.getApplication().getRegistrationName(); }
/** * Return the resource object corresponding to the supplied name or throw an illegal argument exception. */ public ResourceReferenceDescriptor getResourceReferenceByName(String name) { for (Iterator itr = this.getResourceReferenceDescriptors().iterator(); itr.hasNext();) { ResourceReferenceDescriptor next = (ResourceReferenceDescriptor) itr.next(); if (next.getName().equals(name)) { return next; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionapphasnoresourcerefbyname", "This app {0} has no resource reference by the name of {1}", new Object[]{getRegistrationName(), name})); }
/** * Return the resource object corresponding to the supplied name or throw an illegal argument exception. */ public ResourceReferenceDescriptor getResourceReferenceByName(String name) { for (Iterator itr = this.getResourceReferenceDescriptors().iterator(); itr.hasNext();) { ResourceReferenceDescriptor next = (ResourceReferenceDescriptor) itr.next(); if (next.getName().equals(name)) { return next; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionapphasnoresourcerefbyname", "This app {0} has no resource reference by the name of {1}", new Object[]{getRegistrationName(), name})); }
/** * Returns the environment property object searching on the supplied key. * throws an illegal argument exception if no such environment property exists. */ public EnvironmentProperty getEnvironmentPropertyByName(String name) { for (Iterator itr = this.getEnvironmentProperties().iterator(); itr.hasNext();) { EnvironmentProperty ev = (EnvironmentProperty) itr.next(); if (ev.getName().equals(name)) { return ev; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionapphasnoenvpropertybyname", "This app {0} has no environment property by the name of {1}", new Object[]{getRegistrationName(), name})); }
/** * Return a reference to another ejb by the same name or throw an IllegalArgumentException. */ public JmsDestinationReferenceDescriptor getJmsDestinationReferenceByName(String name) { for (Iterator itr = this.getJmsDestinationReferenceDescriptors().iterator(); itr.hasNext();) { JmsDestinationReferenceDescriptor jdr = (JmsDestinationReferenceDescriptor) itr.next(); if (jdr.getName().equals(name)) { return jdr; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionapphasnojmsdestrefbyname", "This app {0} has no resource environment reference by the name of {1}", new Object[] {getRegistrationName(), name})); }
/** * Returns the environment property object searching on the supplied key. * throws an illegal argument exception if no such environment property exists. */ public EnvironmentProperty getEnvironmentPropertyByName(String name) { for (Iterator itr = this.getEnvironmentProperties().iterator(); itr.hasNext();) { EnvironmentProperty ev = (EnvironmentProperty) itr.next(); if (ev.getName().equals(name)) { return ev; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionapphasnoenvpropertybyname", "This app {0} has no environment property by the name of {1}", new Object[]{getRegistrationName(), name})); }
/** * Return a reference to another ejb by the same name or throw an IllegalArgumentException. */ public ResourceEnvReferenceDescriptor getResourceEnvReferenceByName(String name) { for (Iterator itr = this.getResourceEnvReferenceDescriptors().iterator(); itr.hasNext();) { ResourceEnvReferenceDescriptor jdr = (ResourceEnvReferenceDescriptor) itr.next(); if (jdr.getName().equals(name)) { return jdr; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionapphasnoresourceenvrefbyname", "This app {0} has no resource environment reference by the name of {1}", new Object[] {getRegistrationName(), name})); }
String getTimedObjectApplicationName() { EjbDescriptor ejbDesc = container_.getEjbDescriptor(); Application app = ejbDesc.getApplication(); return (app != null) ? app.getRegistrationName() : ""; }
String getTimedObjectApplicationName() { EjbDescriptor ejbDesc = container_.getEjbDescriptor(); Application app = ejbDesc.getApplication(); return (app != null) ? app.getRegistrationName() : ""; }
public static String getContextID(WebBundleDescriptor wbd) { String cid = null; if (wbd != null ) { //String moduleId = wbd.getUniqueFriendlyId(); cid = VersioningUtils.getRepositoryName(wbd.getApplication().getRegistrationName()) + '/' + wbd.getUniqueFriendlyId(); } return cid; }
public static String getContextID(WebBundleDescriptor wbd) { String cid = null; if (wbd != null ) { //String moduleId = wbd.getUniqueFriendlyId(); cid = VersioningUtils.getRepositoryName(wbd.getApplication().getRegistrationName()) + '/' + wbd.getUniqueFriendlyId(); } return cid; }
/** * Create GeneratorException for this message key. * @param key the message key in the bundle. * @param bundle the ejb bundle. * @param e the Exception to use for the message. * @return GeneratorException. */ public static GeneratorException createGeneratorException( String key, EjbBundleDescriptor bundle, Exception e) { return new GeneratorException(I18NHelper.getMessage( messages, key, bundle.getApplication().getRegistrationName(), getModuleName(bundle), e.getMessage())); }
/** * Create GeneratorException for this message key and bean name. * @param key the message key in the bundle. * @param bundle the ejb bundle. * @return GeneratorException. */ public static GeneratorException createGeneratorException( String key, String beanName, EjbBundleDescriptor bundle) { return new GeneratorException(I18NHelper.getMessage( messages, key, beanName, bundle.getApplication().getRegistrationName(), getModuleName(bundle))); }
/** * Create GeneratorException for this message key. * @param key the message key in the bundle. * @param bundle the ejb bundle. * @return GeneratorException. */ public static GeneratorException createGeneratorException( String key, EjbBundleDescriptor bundle) { return new GeneratorException(I18NHelper.getMessage( messages, key, bundle.getApplication().getRegistrationName(), getModuleName(bundle))); }
public String getModuleName() { String moduleName = null; // for standalone jars, return its registration name // for applications, return the module uri if (getApplication().isVirtual()) { moduleName = getApplication().getRegistrationName(); } else { moduleName = getModuleDescriptor().getArchiveUri(); } return moduleName; }
public String getModuleName() { String moduleName = null; // for standalone jars, return its registration name // for applications, return the module uri if (getApplication().isVirtual()) { moduleName = getApplication().getRegistrationName(); } else { moduleName = getModuleDescriptor().getArchiveUri(); } return moduleName; }
CallFlowInfoImpl(BaseContainer container, EjbDescriptor descriptor, ComponentType compType) { this.container = container; this.ejbDescriptor = descriptor; this.appName = (ejbDescriptor.getApplication().isVirtual()) ? null : ejbDescriptor.getApplication().getRegistrationName(); String archiveuri = ejbDescriptor.getEjbBundleDescriptor() .getModuleDescriptor().getArchiveUri(); this.modName = com.sun.enterprise.util.io.FileUtils .makeFriendlyFilename(archiveuri); this.ejbName = ejbDescriptor.getName(); this.componentType = compType; }
CallFlowInfoImpl(BaseContainer container, EjbDescriptor descriptor, ComponentType compType) { this.container = container; this.ejbDescriptor = descriptor; this.appName = (ejbDescriptor.getApplication().isVirtual()) ? null : ejbDescriptor.getApplication().getRegistrationName(); String archiveuri = ejbDescriptor.getEjbBundleDescriptor() .getModuleDescriptor().getArchiveUri(); this.modName = com.sun.enterprise.util.io.FileUtils .makeFriendlyFilename(archiveuri); this.ejbName = ejbDescriptor.getName(); this.componentType = compType; }