How is GlassFish an OSGi container?
===

In researching OSGi and OSGi containers, I stumbled across [this](http://stackoverflow.com/questions/3144770/glassfish-as-an-osgi-container) SO question mentioning GlassFish as an OSGi container, and I have to say I'm quite baffled.

**How is this possible?!?!**

My understanding was that OGS - a Java-compliant app server - has 2 containers:

* Web Container: where you deploy WAR files for web apps and services
* App Container: where you deploy EJBs for business logic

Where do OSGi bundles fit into this paradigm?!? Does OGS allow you to deploy an OSGi bundle to the app container and treat it like an EJB or something? And if I'm mistaken about how OGS works please correct me! Thanks in advance!