• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Scala programming language as an OSGi bundle

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
author
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
author
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!