Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Why Don't They Do Bundles This Way Instead?(Idiot curiosity)
Why Don't They Do Bundles This Way Instead? [message #545918] Fri, 09 July 2010 15:25 Go to next message
Wm. Bainbridge is currently offline Wm. Bainbridge
Messages: 6
Registered: April 2010
Junior Member
One of the big problems I ran into with multiple complex apps running in dmServer was that different open source packages, such as Hibernate, ActiveMQ, CXF and so on, have some overlapping package dependencies, that are sometimes incompatible with one another. So all these packages have a ton of import-package statements that make it absolute hell trying to figure out how to provision the container so that everything loads and works right. So, why don't the people who put together the project bundles start importing bundles instead of packages? If all these bundles are designed to run in an OSGi container, and the deployment unit in OSGi containers is bundles, wouldn't it be way simpler to make the dependencies available as bundles and import those bundles, rather than importing packages that might be available in several different bundles in an active, enterprise OSGi container? Just wondering.
Re: Why Don't They Do Bundles This Way Instead? [message #545920 is a reply to message #545918] Fri, 09 July 2010 15:28 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
The current reality is that few of these open source project pay any attention to OSGi. If and when they do, the kind of approach you describe will be more viable.

Keep wondering though... Cool
Re: Why Don't They Do Bundles This Way Instead? [message #545992 is a reply to message #545920] Fri, 09 July 2010 20:01 Go to previous messageGo to next message
Wm. Bainbridge is currently offline Wm. Bainbridge
Messages: 6
Registered: April 2010
Junior Member
Fair enough. It wouldn't be too hard, though. The projects usually ship with the dependencies, and they've started putting OSGi manifests in the dependency jars, thereby turning them into bundles, so if the project bundles just imported the dependency bundles they shipped with . . .
Re: Why Don't They Do Bundles This Way Instead? [message #546041 is a reply to message #545992] Sat, 10 July 2010 08:46 Go to previous message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
Please note that import-bundle is not standard OSGi - it was introduced by SpringSource dm Server and is supported by Virgo. So no-one outside a Virgo context is really going to code an import-bundle since that would tie them to Virgo.

They could use require-bundle, but that has a number of semantic rough edges and I would not recommend it.

One of these days we should propose import-bundle as an OSGi standard. Just a question of priorities though...
Re: Why Don't They Do Bundles This Way Instead? [message #588009 is a reply to message #545918] Fri, 09 July 2010 15:28 Go to previous message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
The current reality is that few of these open source project pay any attention to OSGi. If and when they do, the kind of approach you describe will be more viable.

Keep wondering though... 8)
Re: Why Don't They Do Bundles This Way Instead? [message #588015 is a reply to message #545920] Fri, 09 July 2010 20:01 Go to previous message
Wm. Bainbridge is currently offline Wm. Bainbridge
Messages: 6
Registered: April 2010
Junior Member
Fair enough. It wouldn't be too hard, though. The projects usually ship with the dependencies, and they've started putting OSGi manifests in the dependency jars, thereby turning them into bundles, so if the project bundles just imported the dependency bundles they shipped with . . .
Re: Why Don't They Do Bundles This Way Instead? [message #588043 is a reply to message #545992] Sat, 10 July 2010 08:46 Go to previous message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
Please note that import-bundle is not standard OSGi - it was introduced by SpringSource dm Server and is supported by Virgo. So no-one outside a Virgo context is really going to code an import-bundle since that would tie them to Virgo.

They could use require-bundle, but that has a number of semantic rough edges and I would not recommend it.

One of these days we should propose import-bundle as an OSGi standard. Just a question of priorities though...
Previous Topic:Get the Current SpringDM Version
Next Topic:Problems deploying war file
Goto Forum:
  


Current Time: Wed Oct 22 09:49:22 GMT 2014

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

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