File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 3479

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scala programming language as an OSGi bundle