wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes Scala programming language as an OSGi bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Scala programming language as an OSGi bundle" Watch "Scala programming language as an OSGi bundle" New topic
Author

Scala programming language as an OSGi bundle

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi,
Scala programming language can be delivered as an OSGi bundle.
What are the steps Scala maintainers did to release Scala as a bundle, any special thing? because I want to deliver Clojure as a bundle (assuming it is possible).
Thank you.
Richard S. Hall
author
Ranch Hand

Joined: Feb 14, 2011
Posts: 47
John Todd wrote:Hi,
Scala programming language can be delivered as an OSGi bundle.
What are the steps Scala maintainers did to release Scala as a bundle, any special thing? because I want to deliver Clojure as a bundle (assuming it is possible).
Thank you.


Sorry, I don't have any knowledge about what they did, so maybe on of the other authors can help.
Stuart McCulloch
author
Greenhorn

Joined: Feb 14, 2011
Posts: 21
John Todd wrote:What are the steps Scala maintainers did to release Scala as a bundle, any special thing? because I want to deliver Clojure as a bundle (assuming it is possible).

Most of the time all you need to do is add the appropriate OSGi metadata to your JAR manifest, namely Bundle-SymbolicName + Bundle-Version to give it a unique identity along with Export-Package and Import-Package to declare what it provides and what it consumes. There are several tools out there to help you add the necessary headers, the most flexible probably being bnd which is the one we tend to use in OSGi in Action. I should also mention that this metadata won't affect existing non-OSGi users of your JAR.

You might also find this discussion useful: http://www.scala-lang.org/node/1413
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Scala programming language as an OSGi bundle
 
Similar Threads
Do OSGi and Equinox have Eclipse plugins?
what is an example of how Scala maintains "referential transparency"
Best Language for Android Development
How to use hibernate in scala
Is Lift a Scala framework like Play?