Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » External libraries
External libraries [message #125825] Thu, 12 February 2009 19:27 Go to next message
Devasis Bassu is currently offline Devasis BassuFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

I have a RCP application which provides a directory for end-users to
provide libraries that they use (JDBC, JMS, etc. implementations). Some
of my application plug-ins need to use those libraries at runtime.

From what I understand about Equinox classloading, the simplest way
would be create a manifest on the fly using full paths to all the
external libraries and register the whole thing as a bundle. The extra
step is to discover all the packages in the libs for exporting within
the manifest.

My questions are...
1) Does it matter which plug-in within my application does this dynamic
bundle loading?
2) DynamicImport-Package: * has to added only to the plug-in(s) that
would use these libraries?
3) Do I have to explicitly uninstall the dynamic bundle given that I
need those libraries around as long as my application?

Is this approach really the simplest solution?

Thanks,
- Devasis
Re: External libraries [message #125901 is a reply to message #125825] Tue, 17 February 2009 16:16 Go to previous message
Eclipse UserFriend
Originally posted by: Dmitry.Negoda.gmail.com

Devasis Bassu wrote:
> Hi,
>
> I have a RCP application which provides a directory for end-users to
> provide libraries that they use (JDBC, JMS, etc. implementations). Some
> of my application plug-ins need to use those libraries at runtime.
>
> From what I understand about Equinox classloading, the simplest way
> would be create a manifest on the fly using full paths to all the
> external libraries and register the whole thing as a bundle. The extra
> step is to discover all the packages in the libs for exporting within
> the manifest.
>
> My questions are...
> 1) Does it matter which plug-in within my application does this dynamic
> bundle loading?
> 2) DynamicImport-Package: * has to added only to the plug-in(s) that
> would use these libraries?
> 3) Do I have to explicitly uninstall the dynamic bundle given that I
> need those libraries around as long as my application?
>
> Is this approach really the simplest solution?

It seems to me the better approach whould be to simply create another
ClassLoader, URLClassLoader for example, and use this class loader to
load JDBC/JMS implementation classes.

>
> Thanks,
> - Devasis
>
>
Previous Topic:[ds] Getting a lock required more than 10000 ms
Next Topic:Where is site list saved in P2?
Goto Forum:
  


Current Time: Wed Jul 17 19:42:24 GMT 2024

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

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

Back to the top