Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » HowTo load database-driver dynamically
HowTo load database-driver dynamically [message #36618] Wed, 26 September 2007 08:43 Go to next message
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 10:17 Go to previous message
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!
>
Re: HowTo load database-driver dynamically [message #588010 is a reply to message #36618] Fri, 28 September 2007 10:17 Go to previous message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
Registered: July 2009
Senior Member
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!
>
Previous Topic:DTP 1.5.1 Finalized
Next Topic:DTP update problem with org.eclipse.datatools.doc.user
Goto Forum:
  


Current Time: Fri Jul 25 01:26:23 EDT 2014

Powered by FUDForum. Page generated in 0.25041 seconds