HowTo load database-driver dynamically [message #587977] |
Wed, 26 September 2007 12:43 |
Eclipse User |
|
|
|
Originally posted by: tobias.soloschenko.mxcit.de
Hello,
Is there any way to add jars dynamically to the osgi context? I've got the
problem to use a folder where users can add drivers and those drivers have
to load dynamically. So I can't define it in plugin.xml > Runtime >
Classpath.
I'm using Spring in the rcp context and the request to any driver classes
is delegated to the
org.eclipse.core.runtime.internal.adaptor.ContextFinder. The
ContextFinder itself looks into the classpath of the plugin where no
Drivers
are found and then the app crashes.
I heard about a ClassLoadingHook and tried it already with vm arguments.
Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.03966 seconds