return directory.delete();
}
private void startCachedConnectionManager(ObjectName on) throws Exception
{
CachedConnectionManager ccm = new CachedConnectionManager();
// dependencies
ccm.setTransactionManagerServiceName(TRANSACTION_MANAGER_OBJECT_NAME);
mbeanServer.registerMBean(ccm, on);
mbeanServer.invoke(on, "start", new Object[0], new String[0]);
log.debug("started " + on);
}