users@grizzly.java.net

Re: Thread safe method for setting the processor on a new client/server connection?

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Wed, 24 Oct 2012 14:54:22 +0200

Hi Matt,

if you have time can you pls. check if 2.3-beta6 resolved this issue
http://java.net/jira/browse/GRIZZLY-1346

Thanks.

WBR,
Alexey.

On 10/09/2012 05:49 PM, Matthew Swift wrote:
>
>
> On 9 October 2012 17:21, Oleksiy Stashok <oleksiy.stashok_at_oracle.com
> <mailto:oleksiy.stashok_at_oracle.com>> wrote:
>
> Hi Matt,
>
> just to make sure, you call
>
>
> TCPNIOServerConnection serverConnection = transport.bind(address,
> backlog);
>
> after you started the actual transport? If yes - pls. file an
> issue :))
>
>
>
> Yes I have started the transport before hand. I've raised issue
> http://java.net/jira/browse/GRIZZLY-1346.
>
> FYI, I'm currently using 2.2.18 in our LDAP SDK.
>
> Regarding the client connections, you can set FilterChain to
> TCPNIOConnectorHandler like:
>
> SocketConnectorHandler connectorHandler =
> TCPNIOConnectorHandler.builder(transport)
> .processor(*clientFilterChain*)
> .build();
>
> Future<Connection> future =
> connectorHandler.connect("localhost", PORT);
>
>
> Nice! I didn't know about this API.
>
> Thanks alot :-)
>
> Matt