@BeforeClass(alwaysRun = true) protected void init() throws Exception { super.init(); OMElement synapse = esbUtils.loadResource( "/artifacts/ESB/jms/transport/ESBJAVA3714_JMX_Pause_JMS_Listener.xml"); updateESBConfiguration(JMSEndpointManager.setConfigurations(synapse)); jmxClient = new JMXClient(null, null, "localhost", "admin", "admin"); mbsc = jmxClient.connect(); }
@AfterClass(alwaysRun = true) public void destroy() throws Exception { super.cleanup(); jmxClient.disconnect(); }