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