On Mon, Dec 20, 2010 at 12:07 PM, Oleksiy Stashok
<oleksiy.stashok_at_oracle.com> wrote:
> Hi Stefano,
>
>> As a starting point I'd like to start from the very last release of
>> the framework and I found it to be the the 2.0.0-RC3, after the
>> downloading (from
>>
>> http://download.java.net/maven/glassfish/org/glassfish/grizzly/grizzly-framework/2.0.0-RC3/)
>> of both the source jar and the bin jar I didn't find any of the
>> examples saw in all the other releases, at least I see a jar with all
>> the tests but they're already compiled.
>
> You can find them here:
> http://download.java.net/maven/glassfish/org/glassfish/grizzly/samples/grizzly-framework-samples/2.0.0-RC3/
>
>
>
>> Unfortunately the example from the svn of the grizzly project 2.0 at
>> https://svn.java.net/svn/grizzly~svn/2dot0, has some errors.
>
> hmm, probably it should be
> for 2.0 trunk: svn co
> https://svn.java.net/svn/grizzly~svn/branches/2dot0/code
> for 2.0-RC3: svn co https://svn.java.net/svn/grizzly~svn/tags/2_0_0-RC3
>
>
>> That is, it seems the version on the svn repository has been subjected
>> to refactoring before the promotion to the RC tag.
>>
>> As an example in the EchoClient
>>
>> (http://java.net/projects/grizzly/sources/svn/content/branches/2dot0/code/samples/framework-samples/src/main/java/org/glassfish/grizzly/samples/udpecho/EchoClient.java?rev=5520)
>> class we can see a call to the
>> com.sun.grizzly.Connection.configureStandalone(boolean) method which
>> is not available for the interface com.sun.grizzly.Connection<L>.
>>
>> So I'd like to know the way for starting on coding a simple UDP client.
>
> I've just changed the sample code, so please use the same link you've
> already used.
> http://java.net/projects/grizzly/sources/svn/content/branches/2dot0/code/samples/framework-samples/src/main/java/org/glassfish/grizzly/samples/udpecho/EchoClient.java
>
This is a brand new example!
It takes me couple of days for studying it and altering for sending
out a byte[], but now it works.
All of those filters in the filter-chain works well in transforming an
object from the domain to the network.
Now I'm digging into the examples for adding some multi-threading
capabilities, and I'm quite sure you'll be hearing from me ;-).
Stefano.
----------------
Now playing: Mostly Autumn - Folklore