The Source for Java Technology Collaboration
User: Password:



Jean-Francois Arcand

Jean-Francois Arcand's Blog

Grizzly Framework available on java.net Maven repository

Posted by jfarcand on September 01, 2006 at 02:06 PM | Comments (3)

We are getting more and more requests (most probably to validate what I'm discussing here, and here, and here, and here ...LOL) about having Grizzly as a separate bundle developers can use to build scalable NIO based server. Hence we've decided to create a bundle that can live outside GlassFish (so you don't need to checkout and build GlassFish). The bundle is available here. For Maven user, just add the following to your pom file:

    <repository>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <id>java.net repository</id>
      <name>Maven 1.x Repository</name>
      <url>https://maven-repository.dev.java.net/nonav/repository/</url>
      <layout>legacy</layout>
    </repository>
  
[....]

  <dependencies>
    <dependency>
      <groupId>grizzly</groupId>
      <artifactId>grizzly</artifactId>
      <version>1.0.4</version>
    </dependency>

I've added an example (and will soon add more) on how it works. The example consists of a very basic HTTP server. If you want to try it, just do:

% java -jar grizzly-1.0.4.jar <<port>> <<html folder>>

ex: java -jar grizzly-1.0.4.jar 8080 /var/www/html

The bundle includes Grizzly's Asynchronous Request Processing (ARP), Grizzly's Application Resources Allocation (ARA) , Grizzly's Comet and of course, all the framework classes.

Ah oui, avant que j'oublie, If you are interested to participate to the Grizzly v2 design, just take a look at the proposal and give feedback. Have fun!

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

  • Sounds very interesting! Did you do any performance analysis to compare the default MINA implementation with the Grizzly backend?

    Regards,
    Matt

    Posted by: mattjive on September 05, 2006 at 03:50 PM

  • As far as I can tell, the (very good!) MINA framework doesn't ship with an HTTP implementation. I know there is some work done by the Apache HttpComponent team to build such server, but this is not yet ready. Once available, it will be interesting to compare....

    Posted by: jfarcand on September 05, 2006 at 05:07 PM

  • You could compare MINA+AsyncWeb with standalone Grizzly (or Grizzly+AsyncWeb).

    Je suis en train de lire tout tes blogs! ... et la question je me pose en ce moment c'est bien celle là: Grizzly ou MINA?

    Je recherche quelque chose pour remplace mon code NIO qui doit être plein bien moins performant que le votre. NIO c'est vraiment trop compliqué!

    Posted by: imjames on September 23, 2006 at 03:43 AM



Only logged in users may post comments. Login Here.


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