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.

 

Comments:

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 08:31 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

oleksiys

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today