users@grizzly.java.net

Re: Controller.acquireConnectorHandler

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Fri, 24 Apr 2009 14:49:26 +0200

Hi Hubert,

>
> Controller controller = new Controller();
> ConnectorHandler connectorHandler =
> controller.acquireConnectorHandler(Controller.Protocol.TCP);
>
> connectorHandler is null.
>
> Version 1.9.14, os Linux 64.
> What can I do about it?
You have to either start Controller before to let it be initialized
with default values, or implicitly add TCPSelectorHandler to it,
before doing acquireConnectionHandler(...).
Because what Controller is doing - it's delegating the call to the
specific protocol SelectorHandler.

WBR,
Alexey.

>
>
> Thank you in advance,
> Hubert