Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3558

Service(Proxy) should be transient in ServiceContext

    Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                anil.saldhana Anil Saldanha
                Reporter:
                anil.saldhana Anil Saldanha
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: