JBoss Community

ManagedEndpointMBean not stopping WebService

created by anemerov in JBoss Web Services - View the full discussion

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.

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community