6

I work from several months with Apache Felix and Glassfish. I can create simple Web Applications. Now I have to create Java daemon based on OSGI architecture. Is there any good tutorial with example code that can help to learn Apache Felix for Java desktop applications. I also want to ask how the bundles are packaged? Is web applications they are jar files.

user1285928
  • 1,328
  • 29
  • 98
  • 147
  • I believe the NetBeans platform can easily integrate OSGI bundles: http://wiki.netbeans.org/NetBeansInOSGi (I have not use the OSGI integration) –  Jul 27 '12 at 21:46
  • 1
    I am sorry, I don't understand your question. Do you already have experience with OSGi (you say you have worked with Felix)? Do you want to create a desktop-application (explicitly started by a user), or a daemon/service (runs in the background)? Please describe more clearly what you already know and where you need help (ideally with an example). – Björn Pollex Jul 30 '12 at 07:50

3 Answers3

3

I'd say using webstart would be easiest. In that case you'd create a basic jar file containing Felix (and maybe some more libraries) that can start up your application, and from there the client could download additional bundles using Bundle.install. You could also combine it with Apache Felix OBR, that would give you more flexibility, at the cost of some extra infrastructue.

You can also have a look at this, but I think (please correct me if I am wrong) it is Equinox specific.

Finally, JBundle looks promising, I never tried it but it looks relevant for you.

Frank Lee
  • 2,728
  • 19
  • 30
1

There are many examples in Apache Felix OSGi Tutorial http://felix.apache.org/site/apache-felix-osgi-tutorial.html

Arthur
  • 3,253
  • 7
  • 43
  • 75
0

Look at bndtools and bnd and any time now jpm: http://softwaresimplexity.blogspot.fr/2012/04/just-another-package-manager.html

Peter Kriens
  • 15,196
  • 1
  • 37
  • 55