use of org.glassfish.concurrent.config.ContextService in project Payara by payara.
the class ContextServiceManager method createResource.
private ContextService createResource(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure {
ContextService newResource = createConfigBean(param, properties);
param.getResources().add(newResource);
return newResource;
}
use of org.glassfish.concurrent.config.ContextService in project Payara by payara.
the class ContextServiceDeployer method undeployResource.
@Override
public void undeployResource(Object resource, String applicationName, String moduleName) throws Exception {
ContextService contextServiceRes = (ContextService) resource;
ResourceInfo resourceInfo = new ResourceInfo(contextServiceRes.getJndiName(), applicationName, moduleName);
namingService.unpublishObject(resourceInfo, contextServiceRes.getJndiName());
// stop the runtime object
concurrentRuntime.shutdownContextService(contextServiceRes.getJndiName());
}
use of org.glassfish.concurrent.config.ContextService in project Payara by payara.
the class ContextServiceDeployer method deployResource.
@Override
public void deployResource(Object resource) throws Exception {
ContextService contextServiceResource = (ContextService) resource;
ResourceInfo resourceInfo = ResourceUtil.getResourceInfo(contextServiceResource);
deployResource(resource, resourceInfo.getApplicationName(), resourceInfo.getModuleName());
}
Aggregations