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.

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!
>

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!
>