Hi,
In my application I have a process that can accept plugin modules to run. Each such plug-in can use its own sub class of one of my tables (I am usinf the 'table per sub class' startegy). The problem is that those plug-ins are deployed in separate JAR files and loaded dynamically into the application using a diefferent class loader (one class loader per plugin). The loading of JARs and creating the plugins class loaders is done only after I have already created my session factory, hence loaded all my mapping files.
I can think of some solutions to solve the problem of loading the plugin mapping files dynamically, but the bigger problem seems to be: how to tell Hibernate to load the classes from the plug-in class loader?
Thanks for any help!
|