« Return to Thread: [PATCH} Adding Grizzly Comet 'native' support to DWR

Re: [PATCH} Adding Grizzly Comet 'native' support to DWR

by Jeanfrancois Arcand-2 :: Rate this Message:

Reply to Author | View in Thread

Salut,

Joe Walker wrote:

>
> DWR needs to be configured with a special load monitor when we are using
> a fancy container. e.g. from ContainerUtil:
>
>         if
> (servletConfig.getServletContext().getServerInfo().startsWith("jetty-6"))
>         {
>             container.addParameter(ServerLoadMonitor.class.getName(),
> ThreadDroppingServerLoadMonitor.class.getName());
>         }
>         else
>         {
>             container.addParameter(ServerLoadMonitor.class.getName (),
> DefaultServerLoadMonitor.class.getName());
>         }
>
> What's the best way of detecting Grizzy?

The getServerInfo() returns for GlassFish|SailFin|OpenEsb:

Sun Java System Application Server <<version>>

(Hopefully Sun's marketing doesn't come with another ugly name ;-))

For Grizzly standalone, it only return 'grizzly'.

Thanks!

-- Jeanfrancois



> Thanks,
>
> Joe.
>
> On Nov 22, 2007 5:30 PM, Jeanfrancois Arcand <
> Jeanfrancois.Arcand@... <mailto:Jeanfrancois.Arcand@...>> wrote:
>
>
>
>     Joe Walker wrote:
>      >
>      >
>      > On Nov 22, 2007 3:37 AM, Jeanfrancois Arcand
>      > <Jeanfrancois.Arcand@... <mailto:Jeanfrancois.Arcand@...>
>     <mailto: Jeanfrancois.Arcand@...
>     <mailto:Jeanfrancois.Arcand@...>>> wrote:
>      >
>      >    
>     http://download.java.net/maven/2/com/sun/grizzly/continuation/1.6-SNAPSHOT/continuation-1.6-SNAPSHOT.jar
>     <http://download.java.net/maven/2/com/sun/grizzly/continuation/1.6-SNAPSHOT/continuation-1.6-SNAPSHOT.jar>
>      >    
>     <http://download.java.net/maven/2/com/sun/grizzly/continuation/1.6-SNAPSHOT/continuation-1.6-SNAPSHOT.jar
>     <http://download.java.net/maven/2/com/sun/grizzly/continuation/1.6-SNAPSHOT/continuation-1.6-SNAPSHOT.jar>>
>
>     Hum looks like the repo in not in sync (hopefully that's because
>     Thanksgiving in the US)...I've temporary placed the jar here:
>
>     http://weblogs.java.net/blog/jfarcand/archive/continuation-1.6-SNAPSHOT.jar
>
>     Hopefully that one doesn't gives 404 :-).
>
>     BTW I forgot to said I've tested with the examples that comes with the
>     dwr.war . Also, to try in glassfish you need to do:
>
>     % install glassfish
>     % vi ${glassfish.home}/domains/domain1/config/domain.xml
>     % Search for:
>
>     <property name="proxiedProtocols" ...>
>
>     replace it with
>
>     <property name="cometSupport" value="true"/>
>
>     Restart and deploy :-)
>
>     Thanks!
>
>     -- Jeanfrancois
>
>
>
>
>      >
>      >
>      > I got a 404 for this. Did I look too early?
>      >
>      > Joe.
>      >
>      >
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: dev-unsubscribe@...
>     <mailto:dev-unsubscribe@...>
>     For additional commands, e-mail: dev-help@...
>     <mailto:dev-help@...>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: [PATCH} Adding Grizzly Comet 'native' support to DWR