0 Replies Latest reply on Dec 3, 2012 12:19 PM by anemerov

    ManagedEndpointMBean not stopping WebService

    anemerov Newbie

      I am running a webservice managed by a ManagedEndpointMBean and it seems like all of the functions are working properly besides stop(). All of the web service statistics are showing up properly, and the stop time is being set but when I set a service to be stopped the web service can still be accessed. Below is the code I am using for creating an MBean:

       

              MBeanServer server = MBeanServerLocator.locate();

       

       

              try {

                  return (ManagedEndpointMBean) MBeanProxyExt.create(ManagedEndpointMBean.class, path, server);

              } catch (MalformedObjectNameException e) {

                        log.error("Error in findWSMBean", e);

              }

       

       

              return null;

       

      I am simply running ManagedEndpointMBean.stop() on the services when it is manually configured to do so. If anyone has any idea what might be causing this it would be greatly appreciated.