Skip to main content


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 12:43 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 14:17 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
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 Apr 26 14:26:33 GMT 2024

Powered by FUDForum. Page generated in 0.03249 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top