*/
        public void failed(RegisterableChannel channel, Throwable e)
        {
            log.log(Level.WARNING, "", e);
        }
        
    }
    
    private static class MyDataListener implements DataListener {

        private String name;

        public MyDataListener(String name) {
            this.name= name;
        }
        
        /**
         * @see org.playorm.nio.api.handlers.DataListener#incomingData(Channel, java.nio.ByteBuffer)
         */
        public void incomingData(Channel channel, DataChunk chunk) throws IOException
        {
        	ByteBuffer b = chunk.getData();
            String msg = HELPER.readString(b, b.remaining());            
            log.info(name+" says '"+msg+"'");
            chunk.setProcessed("TestExample.MyDataListner");
        }

        /**
         * @see org.playorm.nio.api.handlers.DataListener#farEndClosed(Channel)
         */
        public void farEndClosed(Channel channel)
        {
        }

        /**
         * @see org.playorm.nio.api.handlers.DataListener#failure(Channel, java.nio.ByteBuffer, java.lang.Exception)
         */
        public void failure(Channel channel, ByteBuffer data, Exception e)
        {
        }