/** * Looks up an service reference with the given name. * Throws an IllegalArgumentException if it is not found. */ public ServiceReferenceDescriptor getServiceReferenceByName(String name) { ServiceReferenceDescriptor sr = _getServiceReferenceByName(name); if (sr != null) { return sr; } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionwebapphasnoservicerefbyname", "This web app [{0}] has no service reference by the name of [{1}]", new Object[]{getName(), 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) { EnvironmentProperty envProp = _getEnvironmentPropertyByName(name); if (envProp != null) { return envProp; } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionwebapphasnoenvpropertybyname", "This web app [{0}] has no environment property by the name of [{1}]", new Object[]{getName(), name})); }
/** * @return a JMS destination reference by the same name or throw an IllegalArgumentException. */ public JmsDestinationReferenceDescriptor getJmsDestinationReferenceByName(String name) { JmsDestinationReferenceDescriptor jrd = _getJmsDestinationReferenceByName(name); if (jrd != null) { return jrd; } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionwebapphasnojmsdestrefbyname", "This web app [{0}] has no resource environment reference by the name of [{1}]", new Object[]{getName(), name})); }
public EjbReference getEjbReference(String name) { EjbReference er = _getEjbReference(name); if (er != null) { return er; } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionwebapphasnoejbrefbyname", "This web app [{0}] has no ejb reference by the name of [{1}] ", new Object[]{getName(), name})); }
/** * @return a reource reference with the matching name or throw. */ public ResourceReferenceDescriptor getResourceReferenceByName(String name) { ResourceReferenceDescriptor rrd = _getResourceReferenceByName(name); if (rrd != null) { return rrd; } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionwebapphasnoresourcerefbyname", "This web app [{0}] has no resource reference by the name of [{1}]", new Object[]{getName(), name})); }
/** * Return the entity manager factory reference descriptor corresponding to * the given name. */ public EntityManagerReferenceDescriptor getEntityManagerReferenceByName(String name) { EntityManagerReferenceDescriptor emr = _getEntityManagerReferenceByName(name); if (emr != null) { return emr; } throw new IllegalArgumentException(localStrings.getLocalString( "exceptionwebapphasnoentitymgrrefbyname", "This web app [{0}] has no entity manager reference by the name of [{1}]", new Object[]{getName(), name})); }
/** * Return the entity manager factory reference descriptor corresponding to * the given name. */ public EntityManagerFactoryReferenceDescriptor getEntityManagerFactoryReferenceByName(String name) { EntityManagerFactoryReferenceDescriptor emfr = _getEntityManagerFactoryReferenceByName(name); if (emfr != null) { return emfr; } throw new IllegalArgumentException(localStrings.getLocalString( "exceptionwebapphasnoentitymgrfactoryrefbyname", "This web app [{0}] has no entity manager factory reference by the name of [{1}]", new Object[]{getName(), name})); }
/** * Looks up an message destination reference with the given name. * Throws an IllegalArgumentException if it is not found. */ public MessageDestinationReferenceDescriptor getMessageDestinationReferenceByName(String name) { MessageDestinationReferenceDescriptor mdr = _getMessageDestinationReferenceByName(name); if (mdr != null) { return mdr; } throw new IllegalArgumentException(localStrings.getLocalString( "exceptionwebapphasnomsgdestrefbyname", "This web app [{0}] has no message destination reference by the name of [{1}]", new Object[]{getName(), name})); }
toStringBuffer.append(sessionConfig); String wname = getName(); if (wname != null && wname.length() > 0) { toStringBuffer.append("\n name ").append(wname);
public void addDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference) { DataSourceDefinitionDescriptor ddDesc = getDataSourceDefinitionDescriptor(reference.getName()); if (ddDesc != null) { throw new IllegalStateException( localStrings.getLocalString("exceptionwebduplicatedatasourcedefinition", "This web app [{0}] cannot have datasource definitions of same name : [{1}]", getName(), reference.getName())); } getDataSourceDefinitionDescriptors().add(reference); }
if (logger.isLoggable(Level.WARNING)) { String msg = rb.getString("webApplication.exceptionShutdownCoherenceWeb"); msg = MessageFormat.format(msg, wmInfo.getDescriptor().getName()); logger.log(Level.WARNING, msg, ex);
logger.log(Level.INFO, "webApplication.loadingApplication", new Object[] {wmInfo.getDescriptor().getName(), wmInfo.getDescriptor().getContextRoot()});