Mytec
Tuesday May 26, 2009
Grizzly 2.0 M2 Release
Next Grizzly 2.0 milestone is reached.
Here is the list of new features available with Grizzly 2.0 M2:
- UDP transport,
- New Connection API, which lets Connections to operate in "message" mode. This API fits better to message oriented transports like UDP,
- Performance improvements,
- Codec API and specifically SSL and FilterChain Codecs,
- Extended Transport API to support multi-binding, added support for unbind(),
- Significantly improved documentation,
- All-in-one OSGi bundle for framework, http and http-servlet available. You can launch them by just doing java -jar grizzly-<module>
In next blog I'll provide more details about Connection "stream" and "message" API and give simple example for UDP transport.
Posted at 04:51PM May 26, 2009 by oleksiys in Grizzly | Comments[1]
I tried to use 'multi-binding'. For every binding I set a specific processor:
Transport t = ...
for (...)
{
Connection c = t.bind(sAddress, iPort);
FilterChain fc = new DefaultFilterChain(...);
c.setProcessor(fc);
}
It didn't work correctly until I changed registerAcceptedChannel in TCPNIOServerConnection.java
I changed:
Processor processor = transport.getProcessor();
into:
Processor processor = this.getProcessor();
Now the server works fine with many TCPServerConnections (some http, some not, some ssl, ...)
But is this how it is intended? Or is there another way?
Posted by Jopie Cruijff on June 03, 2009 at 03:31 PM CEST #