users@grizzly.java.net

Re: bear 2.0

From: John ROM <snake-john_at_gmx.de>
Date: Wed, 29 Oct 2008 12:49:44 +0100

Hi Ken,
I think the ProtocolParser API might be simplified in 2.0.
There has been a ByteBuffer Streams contribution and this might lead to a new API.

In 2.0 the parser might just look at the bytes to find the message boudaries and
hand the upper Application Layers a Reader which dynamicly gets filled with bytes.
The Reader will have methods for checking readyness and for retrieving basic java types
 (int,Long,etc,byte[]). All ByteBuffer management (buffer growing) will be handled by Grizzly.
So there would be no more need for hasMoreBytes, isExpecting,etc...

I'll be experimenting this weekend (-:

Many Greetings
John

-------- Original-Nachricht --------
> Datum: Wed, 29 Oct 2008 03:40:22 -0700 (PDT)
> Von: "Ken--_at_newsgroupstats.hk" <dragonken_at_gmail.com>
> An: users_at_grizzly.dev.java.net
> Betreff: Re: bear 2.0

>
> Hi Alexey,
>
> Have you any example of ProtocolParser in Grizzly 2.0?
>
> public class CustomProtocolParser extends FilterAdapter {
> }
>
> What's the different between of this compare to Grizzly 1.x's
> ProtocolParser?
>
> Regards,
> Ken
>
>
>
> Oleksiy Stashok wrote:
> >
> > Hi Ken,
> >
> > actually Jeanfrancois answered to you.
> > I will just add, that things, you're doing right now with
> > "broadcasting" could be implemented easier and on higher level (no
> > need to deal with channels, keys) with Grizzly 2.0
> >
> > Thanks.
> >
> > WBR,
> > Alexey.
> >
> > On Oct 21, 2008, at 20:43 , Ken--_at_newsgroupstats.hk wrote:
> >
> >>
> >> Just aware that Grizzly 2.0 is built from the ground and will have a
> >> more
> >> user friendly api. Any pro and con for building my new application
> >> with
> >> Grizzly 2.0 compare to 1.x?
> >>
> >> my plan:
> >>
> >> 1. server application with ssl socket
> >> 2. http engine (with jsp and servlet support) embedded. Glassfish
> >> embedded?
> >> 3. applet or ajax rich client
> >> 4. integration with terracotta (jvm clustering)
> >>
> >> Ken
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/bear-2.0-tp20096830p20096830.html
> >> Sent from the Grizzly - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> >> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> > For additional commands, e-mail: users-help_at_grizzly.dev.java.net
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/bear-2.0-tp20096830p20224439.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net

-- 
GMX Download-Spiele: Preizsturz! Alle Puzzle-Spiele Deluxe über 60% billiger.
http://games.entertainment.gmx.net/de/entertainment/games/download/puzzle/index.html