Skip to main content

Sebastien Dionne

Sebastien Dionne graduated from university in Software Engineering. He started his career making rich client applications for telecommunications companies using Swing. Now he is focussing on J2EE applications in banking companies. His job is mainly to provide real-time applications web based and gateways for the stock market.

 

survivant's blog

Grizzly : How to be notify when a client disconnect

Posted by survivant on November 25, 2008 at 7:56 AM PST

It's now possible to be notify when a client disconnect for a server build on Grizzly 1.9+.

here a little snippets that will allow you that.  Thanks to the new ConnectionCloseHandler.

public void init(){
        
        int port = 5000;
        

Grizzly : Speedup the ProtocolFilter response time

Posted by survivant on November 21, 2008 at 12:51 PM PST

Suppose that you are dealing with sql query that you send to a database.  Some query could take few seconds to run, that will block a Thread.  Even if you have few Threads in your pool, they could all be stuck there too.  To avoid that you can use the Producer/Consumer pattern.

Take a look at this snippets.

....

// default Pipeline settings

Maven Test Coverage : Cobertura and Surefire working

Posted by survivant on November 11, 2008 at 5:45 AM PST

I wanted to add Cobertura to Grizzly project within the pom file for Maven, but I got errors at first.

I follow the procedure describe on Cobertura website, but it was lacking of a complete example. Cobertura will instrument your classes and you need to run tests to get a test coverage.

Tools for debugging html/css/javascript

Posted by survivant on November 10, 2008 at 10:34 AM PST

There are so many browsers and version of theses browsers that I became harder to create HTML that will run on all the possibles combinations.

New logging formatter for Grizzly

Posted by survivant on November 3, 2008 at 6:16 AM PST

I created a new logging formatter for Grizzly, because when we were debugging a test we weren't able to trace in the log the event because the default formatter in java.util.logging doesn't print the Thread that log the event. (ouff..

New committer for Grizzly framework

Posted by survivant on October 13, 2008 at 1:14 PM PDT

Welcome to this new blog, my blog :). I'll use this blog to talk about Java technologies than I used and keep the rest to my personal blog : http://sebastiendionne.ca

I'm happy to be a new committer for Grizzly framework. I started using Grizzly since few months, and I mostly did demos using Grizzly.