Grizzly's OSGi bundles
Grizzly has OSGi bundles available for a while, but we haven't made any noise about it yet to let the spotlight on GlassFish v3. Since OSGi is the current buzz, let's the monster enter the buzz circus...
Since release 1.7.0 (we are now shipping 1.7.3.3), Grizzly ships with jar file manifests that include appropriate OSGi bundle information. This means that you can import the Grizzly jars into an OSGi framework and use them, for example, to build a I/O application using the framework classes, to build a static Web Server or a Comet messages bus. Those jars are currently self-contained for the reason that you can use them for testing using a simple command like:
java -jar [bundle-name] -p [port] -a [war|jar|directory location] [Component_name]
As an example, you can:
% java -jar grizzly-messagesbus-webserver-1.7.3.3.jar -p 8080 -a jmaki-messagesbus-demo.war
which start a simple Comet messages bus (I will soon blog about this new module). As usual, let us know what you think about those OSGi bundles, if they are ok or not, as none of us are OSGi expert. You can download those OSGi bundles from here...
technorati: grizzly glassfish comet
- Login or register to post comments
- Printer-friendly version
- jfarcand's blog
- 1657 reads






Comments
by jfarcand - 2008-05-20 09:20
The Axis2 discussion has moved on users@grizzly.dev.java.net....The answer was: Yes, you can run Axis on top of grizzly. -- Jeanfrancoisby sumitsureka - 2008-05-18 06:18
How can I use Grizzly as the Transport layer for Axis2. I require Axis2 for teh SOAP request but interest in using Grizzly as the Webserver.by jfarcand - 2008-05-16 14:07
I have'nt tested neither GlassFish v3 or Grizzly, but I don't see any reason why It cannot work. BTW Grizzly is not yet integrated in GlassFish using OSGi. We are working on the change right now. -- Jeanfrancoisby paksegu - 2008-05-16 08:31
How can I use this with Apache Sling? or can it be used with Apache Sling or its the embedded Glasfish more appropriate?