hornetq/hornetq — pull request #212 by mto (2012-05-21 11:25:44+00:00)
Title: Use context loader in org.hornetq.core.config.impl.FileConfiguration

I have HornetQ embedded in Tomcat. To externalize the HornetQ config, i attempted to build my own URL class loader and set it as the context loader while the code bootstrapping HornetQ is executed.

Unfortunately, my approach did not work as the class loader used in org.hornetq.core.config.impl.FileConfiguration is the one that had loaded the class FileConfiguration.

Back to my use case, the config file are forced to be under the classpath of Tomcat.

I suggest to use context loader in FileConfiguration.