For using an agent within an OSGi container, Jolokia comes with agents packaged OSGi bundles. They come in two flavours:
Note, that some OSGi container (like Eclipse Virgo) comes with a so called Web extender which allows for deployment of standard Webarchives (war). For such container, there is a choice between the OSGi bundle and the WAR agent, where the later is probably easier to deploy since there is already an HTTP server running in such containers, which not necessarily export an OSGi HTTP service required by the standard bundle.
More details about the OSGi agents can be found in the Jolokia reference manual.