// logger for this deployer
private static Logger _logger = LogFacade.getLogger();
@Override
public void deployResource(Object resource, String applicationName, String moduleName) throws Exception {
ContextService contextServiceRes = (ContextService) resource;
if (contextServiceRes == null) {
_logger.log(Level.WARNING, LogFacade.DEPLOY_ERROR_NULL_CONFIG, "ContextService");
return;
}
String jndiName = contextServiceRes.getJndiName();
String contextInfo = contextServiceRes.getContextInfo();
if(_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE, "ContextServiceDeployer.deployResource() : jndi-name ["+jndiName+"], " +
" context-info ["+contextInfo+"]");
}
ResourceInfo resourceInfo = new ResourceInfo(contextServiceRes.getJndiName(), applicationName, moduleName);
ContextServiceConfig config = new ContextServiceConfig(contextServiceRes);
javax.naming.Reference ref= new javax.naming.Reference(
javax.enterprise.concurrent.ContextService.class.getName(),
"org.glassfish.concurrent.runtime.deployer.ConcurrentObjectFactory",