Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » What is the difference between bundle fragment and snap?
What is the difference between bundle fragment and snap? [message #1011730] Wed, 20 February 2013 06:42 Go to next message
Pachara Tinamas is currently offline Pachara TinamasFriend
Messages: 2
Registered: June 2011
Junior Member
I found virgo has bundle fragment that can attach to other host-fragment.
It look like concept of virgo snap bundle.
In the host MANIFEST.MF have same configuration, but it use HOST-FRAGMENT: on fragment bundle and Snap-ContextPath: on snap bundle.

What is the defference of both?

Thank you.
Re: What is the difference between bundle fragment and snap? [message #1011854 is a reply to message #1011730] Wed, 20 February 2013 11:29 Go to previous message
Chris Frost is currently offline Chris FrostFriend
Messages: 230
Registered: January 2010
Location: Southampton, England
Senior Member

Hi,

The concepts are very similar but they are different processes. The Fragments/Host system is an OSGi standard which creates a single combined bundle with a single classloader. It is also not possible to attach or unattach a fragment without out restarting the host bundle.

The Snaps process is much lighter and is specific to Virgo, it isn't a standard. The two bundles remain separate and have their own classloaders and the only thing that is combined is the servlet context of each bundle. This is much better for web applications as it is more dynamic and means no down time when snaps are added or removed forma web app.

Hope that helps, Chris.


------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
Previous Topic:Virgo Survey (2013) Results
Next Topic:FuseBundles support?
Goto Forum:
  


Current Time: Fri Nov 28 00:34:56 GMT 2014

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

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