HowTo load database-driver dynamically [message #36618] |
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!
|
|
|
Re: HowTo load database-driver dynamically [message #36721 is a reply to message #36618] |
Fri, 28 September 2007 14:17 |
Eclipse User |
|
|
|
Originally posted by: brianf.sybase.com
Hi Tobias...
Unfortunately, I don't believe we've tried integrating the DTP driver
management framework with OSGI (if there's anyone on the newsgroup who HAS
tried this, please respond to Tobias' question). You might have to pose the
question to the eclipse.platform newsgroup for further guidance.
However, if you get an answer, would you mind posting it back to the DTP
newsgroup? I'd be interested in knowing how to integrate DTP and OSGI.
Thanks
--Fitz
"Tobias Soloschenko" <tobias.soloschenko@mxcit.de> wrote in message
news:4f40d26c100ec8dd17a76edc2f666bc5$1@www.eclipse.org...
> 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.04648 seconds