stopService(on);
}
private void startWrapperDataSourceService() throws Exception
{
WrapperDataSourceService wdss = new WrapperDataSourceService();
wdss.setJndiName(DATA_SOURCE_JNDI_NAME);
// dependencies
wdss.setConnectionManager(DEFAULTDS_CONNECTION_MANAGER_OBJECT_NAME);
ObjectName irrelevant = new ObjectName(":name=irrelevant");
wdss.setJMXInvokerName(irrelevant);
Registry.bind(irrelevant, new NoopInvoker());
mbeanServer.registerMBean(wdss, DEFAULTDS_WRAPPER_DATA_SOURCE_SERVICE_OBJECT_NAME);
mbeanServer.invoke(DEFAULTDS_WRAPPER_DATA_SOURCE_SERVICE_OBJECT_NAME, "start", new Object[0], new String[0]);