users@glassfish.java.net

Re: Glassfish configuration for Asynchronous request processing

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Thu, 03 Nov 2011 17:08:38 +0100

Hi Raghuver,

> Glassfish for async processing of requests is my requirement. so i
> added the
> following in my domain.xml:
>
> <jvm-options>-Dcom.sun.grizzly.http.asyncwrite.enabled=true</jvm-options>
> <jvm-options>-Dcom.sun.grizzly.http.asyncwrite.maxBufferPoolSize=10000</jvm-options>
>
This enables async writes.

> Is there any thing i need to do in code or any other configuration
> that i am
> missing.
You may want to take a look at the Servlet 3.0 async API.
Here is a blog from Arun, which may help
http://blog.arungupta.me/2010/05/totd-139-asynchronous-request-processing-using-servlets-3-0-and-java-ee-6/

WBR,
Alexey.