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

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            anil.saldhana Anil Saldanha (Inactive)
            anil.saldhana Anil Saldanha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: