Refine search
public boolean isServer() { return penv.getProcessType().isServer(); } public boolean isNotServerOrACC() {
/** * Checks whether the executing environment is embedded * @return true if execution environment is embedded */ public boolean isEmbedded() { return ProcessEnvironment.ProcessType.Embedded.equals(processType); }
/** * Checks whether the executing environment is appclient container runtime * @return true if execution environment is appclient container * false if it is not ACC */ public boolean isACCRuntime() { return ProcessEnvironment.ProcessType.ACC.equals(processType); }
private boolean bundleEligible(BundleDescriptor bundle) { boolean eligible = false; if( processType.isServer() ) { eligible = (bundle instanceof WebBundleDescriptor) || (bundle instanceof EjbBundleDescriptor); } else if( processType == ProcessType.ACC ) { eligible = (bundle instanceof ApplicationClientDescriptor); } return eligible; }
private boolean bundleEligible(BundleDescriptor bundle) { boolean eligible = false; if( processType.isServer() ) { eligible = (bundle instanceof WebBundleDescriptor) || (bundle instanceof EjbBundleDescriptor); } else if( processType == ProcessType.ACC ) { eligible = (bundle instanceof ApplicationClientDescriptor); } return eligible; }
/** * Checks whether the executing environment is non-acc (standalone) * @return true if execution environment is non-acc (standalone) */ public boolean isNonACCRuntime() { return ProcessEnvironment.ProcessType.Other.equals(processType); }
/** * Checks whether the executing environment is application server * @return true if execution environment is server * false if it is client */ public boolean isServer() { return ProcessEnvironment.ProcessType.Server.equals(processType); }
private void assertServer() { if ( !processType.isServer() ) { throw new IllegalStateException("Only available in Server mode"); } }
if (processType.isServer()) { gmsClient = new IiopFolbGmsClient( services ) ;
if (processType.isServer()) { props.setProperty(ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY, initialPort);
String jndiName = next.getGlobalJndiName(); if( processType.isServer() ) { try { namingManager.unpublishObject(jndiName);
String jndiName = next.getGlobalJndiName(); if( processType.isServer() ) { try { namingManager.unpublishObject(jndiName);
if(!processType.isServer()) {
new ManagedBeanNamingProxy(next, habitat); if( processType.isServer() ) { namingManager.publishObject(jndiName, namingProxy, true); } else {
new ManagedBeanNamingProxy(next, habitat); if( processType.isServer() ) { namingManager.publishObject(jndiName, namingProxy, true); } else {
if (iiopUtils.getProcessType().isServer()) { List<IiopListener> iiop_listener_list = IIOPUtils.getInstance() .getIiopService().getIiopListener() ;
if (!processType.isServer()) { orbDefaultServerId = ACC_DEFAULT_SERVER_ID; if (processType.isServer()) { validateIiopListeners(); orbInitProperties.put(ORBConstants.NO_DEFAULT_ACCEPTORS, "true"); if (processType.isServer()) { PEORBConfigurator.setThreadPoolManager(); Utility.setContextClassLoader(GlassFishORBManager.class.getClassLoader()); if( processType.isServer()) { if (processType.isServer()) {
public boolean isServer() { return processEnv.getProcessType().isServer(); } public boolean isNotServerOrACC() {
public boolean isServer() { return processEnv.getProcessType().isServer(); } public boolean isNotServerOrACC() {
@Override public boolean supportsModuleType(XModuleType moduleType) { // Reads persitence.xml for ejb jars return XModuleType.EJB == moduleType || // Or App client modules if running inside server (XModuleType.CAR == moduleType && env.getProcessType().isServer()); }