Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Re: Bundle update and buddy classloading
Re: Bundle update and buddy classloading [message #127561] Fri, 13 March 2009 16:40 Go to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Laurent Dubois wrote:
> Hello,
>
> I'm having some trouble with buddy classloading after a bundle update
> (where the classpath gets updated) and wondering if I'm missing something.
>
> my setup is:
> - bundle A with a registered buddy policy
> - bundle B with a registered buddy A
>
> then bundle A gets updated (new classpath), but bundle B does not "see"
> the change when looking for a class that is part of the newly updated
> classpath in bundle A.
> A loadClass() call on bundle A directly gets the class, but not from
> bundle B...
>
> so my question is: Does a bundle update automatically triggers a
> classloading update on the registered buddy, or I have to do something
> specific (and how)?
>
> Thanks
>

You're more likely to get info from eclipse.technology.equinox, so I've
marked that for follow up.

Depends on what you mean buy bundle update? If you use OSGi to stop a
bundle, install a new version, and start that one you also need to use
the PackageAdmin service to refresh packages that are exported, etc.

If you mean an update (Update Manager or p2) that you then restart
eclipse, it should have restarted with the new classpaths, no?

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Bundle update and buddy classloading [message #128925 is a reply to message #127561] Thu, 09 April 2009 22:33 Go to previous message
Laurent Dubois is currently offline Laurent DuboisFriend
Messages: 16
Registered: July 2009
Junior Member
sorry for the late reply.

> Depends on what you mean buy bundle update? If you use OSGi to stop a
> bundle, install a new version, and start that one you also need to use
> the PackageAdmin service to refresh packages that are exported, etc.

yeah, that's what I meant...I was hoping to get the new classpath of the
updated bundle automatically shared with its registered buddy without
having to restart all of them (some are UI type of plugin which would
require to restart the whole application)...
Anyway, I found another way to get the new classpath from the different
concerned bundles/plugin, so no more problems.

Thanks for the help
Previous Topic:Training Classes on Equinox
Next Topic:Unable to update - consistent, persistent problem
Goto Forum:
  


Current Time: Sat Apr 27 02:34:16 GMT 2024

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

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

Back to the top