/**
* Database specific.
*/
private void startManagedConnectionFactory(ObjectName on) throws Exception
{
LocalManagedConnectionFactory mcf = new LocalManagedConnectionFactory();
log.info("connection url:" + config.getDatabaseConnectionURL());
log.info("driver:" + config.getDatabaseConnectionURL());
log.info("username:" + config.getDatabaseUserName());
log.info("password:" + config.getDatabasePassword());
mcf.setConnectionURL(config.getDatabaseConnectionURL());
mcf.setDriverClass(config.getDatabaseDriverClass());
mcf.setUserName(config.getDatabaseUserName());
mcf.setPassword(config.getDatabasePassword());
String isolation = config.getDatabaseTransactionIsolation();
if (isolation != null)
{
mcf.setTransactionIsolation(isolation);
}
ManagedConnectionFactoryJMXWrapper mbean = new ManagedConnectionFactoryJMXWrapper(mcf);
mbeanServer.registerMBean(mbean, on);
mbeanServer.invoke(on, "start", new Object[0], new String[0]);