1

I am developing bundles in Eclipse Virgo, but I have faced customers in the past who insist on using a specific application server such as WebLogic. Is there a way to use OSGi on every Java EE appliction server?

Mike Braun
  • 3,729
  • 17
  • 15
AmirMV
  • 215
  • 1
  • 11
  • Does [this answer](http://stackoverflow.com/questions/12582709/osgi-and-application-servers) help you? – Boj Oct 29 '13 at 13:07

1 Answers1

1

Currently, no. Some application servers — such as Virgo, Glassfish, IBM Websphere etc — directly support OSGi deployment, but they support it in different ways. Other application servers have no built-in support for OSGi.

However even in application servers with no OSGi support, it is possible to embed OSGi within a traditional Java EE deployment artifact such as a WAR or EAR file. Some example code for embedding OSGi is shown in a blog post I wrote some time ago.

Mike Braun
  • 3,729
  • 17
  • 15
Neil Bartlett
  • 23,743
  • 4
  • 44
  • 77
  • Neil's right in general, but if you pick app servers that directly support OSGi deployment, you can in principle develop application bundles which will run on Virgo as well as other app servers. You just have to deploy the bundles in app server specific ways. That's a benefit of OSGi being a standard. – glyn Oct 30 '13 at 03:05
  • Thanks Glyn. I did indeed mean that the *deployment* aspects differ between these servers, but totally agree that the code can be portable. – Neil Bartlett Oct 31 '13 at 19:26