undeployResource(resource, resourceInfo.getApplicationName(), resourceInfo.getModuleName());
}
@Override
public void undeployResource(Object resource, String applicationName, String moduleName) throws Exception {
ManagedScheduledExecutorService ManagedScheduledExecutorServiceRes = (ManagedScheduledExecutorService) resource;
ResourceInfo resourceInfo = new ResourceInfo(ManagedScheduledExecutorServiceRes.getJndiName(), applicationName, moduleName);
namingService.unpublishObject(resourceInfo, ManagedScheduledExecutorServiceRes.getJndiName());
}