JMXConnectorServer con = JMXConnectorServerFactory.newJMXConnectorServer(new JMXServiceURL(url), env, getMBeanServer());
con.start();
if (getTransactionManager() == null) {
LOGGER.debug("Creating TransactionManager");
setTransactionManager(new Jotm(true, false).getTransactionManager());
getTransactionManager().setTransactionTimeout(60);
}
if (getNamingContext() == null) {
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, MuleInitialContextFactory.class.getName());
System.setProperty(Context.PROVIDER_URL, "mule-jbi");