/**
* {@inheritDoc}
*/
public synchronized void deployResource(Object resource, String applicationName, String moduleName) throws Exception {
MailResource mailRes =
(MailResource) resource;
if (mailRes == null) {
_logger.log(Level.INFO, "core.resourcedeploy_error");
} else {
ResourceInfo resourceInfo = new ResourceInfo(mailRes.getJndiName(), applicationName, moduleName);
//registers the jsr77 object for the mail resource deployed
/* TODO Not needed any more ?
/*ManagementObjectManager mgr =
getAppServerSwitchObject().getManagementObjectManager();
mgr.registerJavaMailResource(mailRes.getJndiName());*/