users@grizzly.java.net

Re: how to enable grizzly-servlet-webserver ARP?

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 06 Nov 2008 14:56:47 -0500

Salut,

huican ping wrote:
> Hello Jeanfrancois,
>
> Sorry to bother you.
>
> I got the below one from https://grizzly.dev.java.net/, and when I
started it up, it showed me "Asynchronous Request Processing enabled:
false" which means it runs synchronous mode.
>
> How to enable ARP? or whether you have the asynchrnous request
processing enabled grizzly-servlet-webserver available? I am a newbie to
glizzly, and hope can get help from you soon.
>
> Java_Http>java -jar
grizzly-servlet-webserver-1.9.0-20081106.024920-70.jar -p 9999 -a
./myHelloWorld.war HelloWorld

Just download the comet one instead:

http://download.java.net/maven/2/com/sun/grizzly/grizzly-comet-webserver/1.9.0-SNAPSHOT/grizzly-comet-webserver-1.9.0-20081106.024920-70.jar

and do:

java -jar grizzly-comet-webserver-1.9.0-20081106.024920-70.jar -p 9999
-a ./myHelloWorld.war HelloWorld

The Comet bundle support both ARP and Servlet.

Let me know how it goes.

Thanks

-- Jeanfrancois

huican ping wrote:
> Hello Jeanfrancois,
>
> Sorry to bother you.
>
> I got the below one from https://grizzly.dev.java.net/, and when I started it up, it showed me "Asynchronous Request Processing enabled: false" which means it runs synchronous mode.
>
> How to enable ARP? or whether you have the asynchrnous request processing enabled grizzly-servlet-webserver available? I am a newbie to glizzly, and hope can get help from you soon.
>
> Java_Http>java -jar grizzly-servlet-webserver-1.9.0-20081106.024920-70.jar -p 9999 -a ./myHelloWorld.war HelloWorld
>
> Running from: /tmp/myHelloWorld
> Launching Servlet: HelloWorld
> Nov 6, 2008 10:54:14 AM com.sun.grizzly.http.SelectorThread displayConfiguration
> INFO:
> Grizzly configuration for port 9999
> maxThreads: 5
> minThreads: 5
> ByteBuffer size: 8192
> maxHttpHeaderSize: 8192
> maxKeepAliveRequests: 256
> keepAliveTimeoutInSeconds: 30
> Static File Cache enabled: true
> Static resources directory: /tmp/myHelloWorld
> Adapter : com.sun.grizzly.http.servlet.ServletAdapter
> Thread Pool (Pipeline): com.sun.grizzly.http.LinkedListPipeline
> Asynchronous Request Processing enabled: false
>
> Thanks
>
> Huican Ping
> Phone:
> 630-627-3191 (office)
> 630-717-8058 (home)
> 630-776-5658 (cell)