users@grizzly.java.net

Re: newbie question

From: charlie hunt <charlie.hunt_at_sun.com>
Date: Fri, 22 Feb 2008 07:17:59 -0600

Welcome Ukyo!

I will be away from e-mail much of the day today, but will get you
started with a few of your questions. I'm sure others in the Grizzly
community will jump in help too. :-)

My comments / suggestions embedded below.

charlie ...

Ukyo Virgden wrote:
> Hi,
>
> I'm a total newbie on Grizzly. After having experienced NIO
> complexities first hand, I've decided to give Grizzly a try.
>
> My requirements are simple. I need to develop a simple TCP server
> which a couple of clients will connect and send XML documents of size
> 2-4K as fast as possible.
>
> For simplicity I'm thinking about developing a connection based
> protocol where each client identifies itself, starts sending XML
> documents, and after the last document, closes the connection.
>
> My questions are
> 1/ Is possible to easily implement this in Grizzly?

Yes, it is possible and pretty easy to do.

> 2/ How do I start? The download page contains LOTS of directories.

There is a couple tutorial documents on the home page on Grizzly
(although, admittedly out documentation is not the best, but we are
working on improving it).

> 3/ Are the any examples?

Again, there are some examples on the Grizzly home page. Looking these
you will start to get an understanding of the key concepts; Controller,
SelectionKeyHandler, ReadFilter, and ProtocolParser.

> 4/ I'm using netbeans for development but I don't prefer uing maven.
> What would be the best way to stat developing with Grizzly in
> netbeans. I'd like to be able to access javadocs within netbeans

Don't worry about maven. You only need maven for building the Grizzly
framework source code. For you own development you can use the default
NetBeans Ant based projects. There's a tutorial on the Grizzly home
page that describes how to use NetBeans to get and build the Grizzly
source code. It describes how to get and install the maven plug-in for
netbeans.

And, yes you can setup netbeans to include Grizzly javadocs. I'd have
to go look up how to do it to remember how. You may be able to find it
in the NetBeans IDE help area too. Let me know if you need further help
in getting this setup. (Actually, if you would like to write a
tutorial on how to setup Grizzly javadocs in NetBeans and contribute it
to the Grizzly community, I would be glad to send you a Grizzly t-shirt.)

Hope that's enough to get you started. And, I'm sure others will jump
in and answer some questions too.

charlie ...

>
> Thanks a lot.
>
> Ukyo
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net