DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page How to use URLClassLoader in a OSGi Bundle?
Notices
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Default How to use URLClassLoader in a OSGi Bundle? - 11-19-2008, 11:04 AM

I have an OSGi Bundle within which I wish to load classes from a JAR.

The location of the JAR & the class to be loaded from the JAR would be dynamically provided to the Bundle.

The solution I could think of is using a URLClassLoader. But the OSGi classloading mechanism restricts from loading any other JARs.

Is there an alternative?
Reply With Quote
Reply

Tags
osgi

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble Stopping a threaded OSGi bundle olakara Java 5 11-10-2009 09:47 AM
Running an RCP application as a simple OSGi bundle bestofmed Eclipse 0 11-28-2008 09:00 AM
Bundle the Plugin in eclipse !! jayjamba Eclipse 0 11-10-2008 03:01 AM
A Conceptual Problem with OSGi AlexandreSH Java 0 10-30-2008 05:23 AM
Access OSGi servicees outside OSGi environment simongdkelly Eclipse 3 02-29-2008 08:43 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com