private void startManagedConnectionPool(ObjectName on,
ObjectName managedConnectionFactoryObjectName,
String criteria) throws Exception
{
JBossManagedConnectionPool mcp = new JBossManagedConnectionPool();
mcp.setCriteria(criteria);
// dependencies
mcp.setManagedConnectionFactoryName(managedConnectionFactoryObjectName);
mbeanServer.registerMBean(mcp, on);
mbeanServer.invoke(on, "start", new Object[0], new String[0]);
log.debug("started " + on);
}