The Source for Java Technology Collaboration
User: Password:
Register | Login help    

Search

Online Books:
java.net on MarkMail:


Updating Grizzly version in GlassFish v3

Posted by jfarcand on November 5, 2008 at 10:27 AM PST

Grizzly releases are always decided by the community and sometimes a bug fixed in Grizzly may takes couple of weeks before they get integrated into GlassFish.

IMG_2471.JPG

Right now GlassFish v3 build on top of Grizzly 1.8.6.2. We are actively working on our next release, which is 1.9.0, and that release as an example contains significant performance improvement with our Comet implementation. For people that want to test the current Grizzly SNAPSHOT jar with v3 right now, you have to execute some magic to make it work. We are working to make it much more simpler, but for now here is how it works. In v3, Grizzly classes are re-packaged (to conform to OSGi). Modules grizzly-framework, grizzly-http and grizzly-utils.jar are repackaged inside grizzly-module.jar (located under ${glassfish.home}/modules/). All other modules (grizzly-comet|cometd|messagesbus etc.) are repackaged inside grizzly-optionals.jar (located under ${glassfish.home}/modules/). So if you want to update a specific module, just do (let's use the comet module as an example):

% cd ${glassfish.home}/modules
% wget http://download.java.net/maven/2/com/sun/grizzly/grizzly-comet/1.9.0-SNA...
% unzip grizzly-comet-1.9.0-SNAPSHOT.jar
% jar uvf grizzly-optionals.jar com
// Restart GlassFish. 

This is quite simple, but would have been much easier is GlassFish were using directly our OSGi bundles. We aren't there yet, but we will eventually :-)

technorati:

Related Topics >> Glassfish      
Comments
Comments are listed in date ascending order (oldest first)

I'm having trouble getting grizzly cometd to work with dojo. The glassfishv3prelude distribution comes with comet support, but returns comment-enclosed json, e.g. the handshake message from com.sun.grizzly.cometd.servlet.CometdServlet looks like this: /*[{"channel":"/meta/handshake","version":"1.0","supportedConnectionTypes":["long-polling","callback-polling"],"minimumVersion":"0.9","id":"0","clientId":"74b7ea07ea4f233c","successful":true,"advice":{"reconnect":"retry","interval":0,"multiple-clients":false},"authSuccessful":true}]*/ I cannot figure out from the advice above which pieces of grizzly I should fetch and update. Can you advise me which pieces I should take from http://download.java.net/maven/2/com/sun/grizzly? Or, where can I find this out?