users@grizzly.java.net

Re: Status of grizzly-http-servlet support in Grizzly 2.x

From: Matthew Swift <matthew.swift_at_gmail.com>
Date: Thu, 9 Aug 2012 13:59:28 +0200

On 8 August 2012 18:10, Oleksiy Stashok <oleksiy.stashok_at_oracle.com> wrote:

> Hi guys,
>
> if you have such a requirement, I can take a look at that asap.
> It should be pretty easy to implement initial Servlet 3.0 startAsync
> functionality, which is similar to Grizzly suspend/resume. The asynchronous
> dispatch might be tricky, but as I understand you don't need that part at
> the moment?
>
>
I think the startAsync support should be sufficient for my needs assuming
it is equivalent to Grizzly's suspend/resume functionality. Excuse my
ignorance here, but what is asynchronous dispatch in the context of the
servlet 3.0 API? Are you referring to the AsyncContext#dispatch() related
methods (
http://docs.oracle.com/javaee/6/api/javax/servlet/AsyncContext.html#dispatch())?
I'm not even sure that I understand what these methods are for, so I guess
I don't need them ;-)

Basically, what I want to do is implement an HTTP<-->LDAP gateway. I don't
really want forwarded LDAP requests blocking threads in the HTTP container
for too long, hence I was looking at the async support in Servlet 3.0.

Cheers,

Matt