[jboss-jira] [JBoss JIRA] Created: (JBAS-3558) Service(Proxy) should be transient in ServiceContext

Anil Saldhana (JIRA) jira-events at jboss.com
Wed Aug 23 13:23:47 EDT 2006


Service(Proxy) should be transient in ServiceContext
----------------------------------------------------

                 Key: JBAS-3558
                 URL: http://jira.jboss.com/jira/browse/JBAS-3558
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: JMX
    Affects Versions: JBossAS-4.0.4.GA, JBossAS-3.2.8.SP1
            Reporter: Anil Saldhana
         Assigned To: Anil Saldhana
             Fix For: JBossAS-4.0.5.CR1, JBossAS-5.0.0.Beta, JBossAS-3.2.8.SP2


ObjectName serviceOName = // ObjectName of any service in question 

MBeanServerConnection server = getServer(); 
      ObjectName so = ServiceControllerMBean.OBJECT_NAME;
      server.invoke(so, "create", new Object[]{serviceOName}, 
            new String[]{"javax.management.ObjectName"});
      ServiceContext sc = (ServiceContext)server.invoke(so, "getServiceContext", new Object[]{serviceOName}, 
            new String[]{"javax.management.ObjectName"});

There is non-serializable exception in obtaining ServiceContext because Service within SC should be transient.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list