users@grizzly.java.net

Grizzly and Glassfish filters

From: Survivant 00 <survivant00_at_gmail.com>
Date: Mon, 19 Jan 2009 19:29:39 -0500

I want to know if it's possible to create filters for Glassfish using the
Grizzly API ?

Suppose that I want to log every connections and disconnection made on
Glassfish, can I do that ?

I hope we can, and if I can.. how can I choose the filters order ?

Do we have a sample somewhere for that ?

I don't know if we can do that

// to be notify when a client/server close the connection
        selectionKeyHandler.setConnectionCloseHandler(new
ConnectionCloseHandler() {

            public void locallyClosed(SelectionKey key) {
                    if(s_logger.isDebugEnabled()){
                        s_logger.debug(key + " is being locally cancelled");
                    }
               }

               public void remotlyClosed(SelectionKey key) {
                   if(s_logger.isDebugEnabled()){
                       s_logger.debug(key + " is being remotly cancelled
(connection closed)");
                   }
               }
        });