The Source for Java Technology Collaboration
User: Password:



Jean-Francois Arcand

Jean-Francois Arcand's Blog

Grizzly's OSGi bundles

Posted by jfarcand on May 15, 2008 at 01:23 PM | Comments (4)

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...

DSC_0162.JPG

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:


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • How can I use this with Apache Sling? or can it be used with Apache Sling or its the embedded Glasfish more appropriate?

    Posted by: paksegu on May 16, 2008 at 08:31 AM

  • 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. -- Jeanfrancois

    Posted by: jfarcand on May 16, 2008 at 02:07 PM

  • 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.

    Posted by: sumitsureka on May 18, 2008 at 06:18 AM

  • The Axis2 discussion has moved on users@grizzly.dev.java.net....The answer was: Yes, you can run Axis on top of grizzly. -- Jeanfrancois

    Posted by: jfarcand on May 20, 2008 at 09:20 AM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds