-
Bug
-
Resolution: Done
-
Major
-
JBossAS-3.2.8.SP1, JBossAS-4.0.4.GA
-
None
ObjectName serviceOName = // ObjectName of any service in question
MBeanServerConnection server = getServer();
ObjectName so = ServiceControllerMBean.OBJECT_NAME;
server.invoke(so, "create", new Object[]
new String[]{"javax.management.ObjectName"});
ServiceContext sc = (ServiceContext)server.invoke(so, "getServiceContext", new Object[]{serviceOName}
,
new String[]
);
There is non-serializable exception in obtaining ServiceContext because Service within SC should be transient.