Methods Summary |
---|
public synchronized void | deployResource(java.lang.Object resource)
ResourceAdapterConfig domainConfig =
(com.sun.enterprise.config.serverbeans.ResourceAdapterConfig)resource;
String rarName = domainConfig.getResourceAdapterName();
ConnectorRuntime crt = ConnectorRuntime.getRuntime();
_logger.log(Level.FINE,
"Calling backend to add resource adapterConfig ",rarName);
crt.addResourceAdapterConfig(rarName,domainConfig);
_logger.log(Level.FINE,
"Added resource adapterConfig in backend",rarName);
|
public synchronized void | disableResource(java.lang.Object resource)
|
public synchronized void | enableResource(java.lang.Object resource)
|
public java.lang.Object | getResource(java.lang.String name, com.sun.enterprise.config.serverbeans.Resources rbeans)
Object res = rbeans.getResourceAdapterConfigByResourceAdapterName(name);
if (res == null) {
Exception ex = new Exception("No such resource");
_logger.log(Level.SEVERE,"no_resource",name);
_logger.log(Level.SEVERE,"",ex);
throw ex;
}
return res;
|
public synchronized void | redeployResource(java.lang.Object resource)
deployResource(resource);
|
public synchronized void | undeployResource(java.lang.Object resource)
ResourceAdapterConfig domainConfig =
(com.sun.enterprise.config.serverbeans.ResourceAdapterConfig)resource;
String rarName = domainConfig.getResourceAdapterName();
ConnectorRuntime crt = ConnectorRuntime.getRuntime();
crt.deleteResourceAdapterConfig(rarName);
|