users@grizzly.java.net

Re: Grizzly and Mina

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 21 May 2009 16:46:48 -0400

Salut,

César Fernando Henriques wrote:
> Hi Guys,
>
> I'm working on a project and I need to decide what framework to use,
> MINA or Grizzle... I have the following scenario:
>
> 1) A Proxy Server or Gateway running in internet that allow mobile
> phones to access resources and services on PC/Servers behind firewall/nat
>
> 2) A Daemon Agent running on the PC or Server that connect to the
> Gateway (outbound connections only) and wait for messages from the
> gateway signaling that someone need data, to make it simple, the Daemon
> create another paralel connection to the Gatreway for every new user
> wanting to connect to the daemon.
>
> 3) A mobile phone that make http get/post request to the gateway to
> access the daemon resources.
>
> II have been playing with mina a couple of days, and really like the
> approach for managing protocol and messages, the problem is that the
> APIs to manage http protocol seems to be not mature.. I mean there is a
> couple of classes like HttpMessage, HttpRequest, HttpResponse but loking
> at the code don't seems to be following a good pattern.. I don't know..
> I don't liked what I see... ;-)
>
> In the other hand I have been playing with Grizzle another couple of
> days... I really like what I see in relations with managing the http
> protocol, sessions, etc...the simple GrizzleWebServer but was very
> dificult to get a simple example using comet up and running, and I don't
> see very clear how to start building a robust solutions with Grizzle
> (IT's very big and complex!!!!)

Can you share your entire class file so I can try?

>
> another couple of requeriments to take in mind, I need compression
> filter, SSL, and a custom protocol on top of HTTP to exchange Encrypted
> messages with shared key (Previuos PEKE/JPAKE key exchange)

All of this can be done on top of Grizzly Web Framework (HTTP). The
shared key might be something a little but more complicated as you might
need to use a ProtocolFilter (from the NIO Framework)

Thanks!

-- Jeanfrancois


>
>
> I hope you guys can help to decide what framework fit better for my project.
>
>
> Best Regards,
>
> Cesar.-