if (jndiFactory != null) {
jndiFactory._setDelegateClassLoader(classLoader);
destinationManager = new JNDIDestinationManager(jndiFactory._getProperties(), true);
sessionManager = new ThreadLocalSessionManager(sessionConfig, destinationManager);
} else {
destinationManager = new SimpleDestinationManager();
sessionManager = new ThreadLocalSessionManager(sessionConfig, destinationManager);
}
log.debug("SESSION IS " + sessionConfig.getId());
if (sessionConfig.getReconnects() != null) {