*/
public Integer getState() throws J2EEConnectorModuleException {
try {
String moduleName = (String)this.getAttribute(kName);
MBeanServer mbs = MBeanServerFactory.getMBeanServer();
ServerContext serverContext = ApplicationServer.getServerContext();
ObjectName objName = new ObjectName(
serverContext.getDefaultDomainName() + ":" +
"j2eeType=ResourceAdapterModule," +
"name=" + ((String)this.getAttribute(kName)) + "," +
"J2EEApplication=" + "null" + "," +
"J2EEServer=" + serverContext.getInstanceName());
Integer intObj = (Integer) mbs.getAttribute(objName, "state");
return intObj;
} catch (Exception e) {
sLogger.throwing(getClass().getName(), "getState", e);
throw new J2EEConnectorModuleException(e.getMessage());