Hi!
I have one small question - is it possible in Grizzly to support multiple
protocols on the same port at the same time provided one of the protocols
is supposed to be HTTP (and handled by Grizzly HTTP framework) and others
are not (i.e. some binary protocols)? If it is possible then can anybody
give some hints where to start?
The reason I'm asking is that it seems that Grizzly NIO framework by itself
can support various simultaneous protocols (though in its current form in a
bit ugly way - it requires a tiny "proxy" ProtocolParser that detects the
protocol upon connection initiation and internally creates and holds an
instance of a "real" ProtocolParser), Grizzly HTTP framework also seems to
have some support for implementation of various HTTP-style protocols on a
single port BUT there is no clear way to integrate Grizzly NIO framework &
Grizzly HTTP framework - the latter one doesn't use ProtocolParser and
seems to hijack all regular NIO framework processing - it requires its own
filter chain, its own working thread etc.
The idea is to detect protocols and handle requests internally by the custom
code unless the protocol is HTTP - in this case lets Grizzly
HTTP/Servlet/Comet etc. engine do the job.
Alexei