users@glassfish.java.net

Re: Can AJP13 connector in Glassfish support comet servlet?

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 21 May 2008 09:58:44 -0400

Hi,

glassfish_at_javadesktop.org wrote:
> I configured my glassfish with Apache httpd following the instruction by Jean-Francois Arcand's Blog http://weblogs.java.net/blog/jfarcand/archive/2006/03/running_glassfi_1.html, and after that I can access my servlet through Apache, but comet servlet can not work, it throw exception :
> java.lang.IllegalStateException: Grizzly Comet hasn't been registered
> at com.sun.enterprise.web.connector.grizzly.comet.CometContext.addCometHandler(CometContext.java:220)
> at com.sun.enterprise.web.connector.grizzly.comet.CometContext.addCometHandler(CometContext.java:266)
> at comet.CometServlet.doPost(CometServlet.java:104)
> at comet.CometServlet.doGet(CometServlet.java:60)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
> ......
> I enabled the AJP connector by setting the jvm option -Dcom.sun.enterprise.web.connector.enableJK=8009, but nowhere to add Comet support to AJP connector.
> Does anyone know where to configure the comet support for AJP connector? Because my web application will use JK for load balancing.
> [Message sent by forum member 'herculesx' (herculesx)]

Unfortunately, no it cannot works as mod_jk completely bypass Grizzly,
and the GlassFish's Comet implementation comes from Grizzly. If you want
to use GlassFish Comet + Apache, I recommend you use mod_proxy instead.
We have some user doing and as far as I can tell, it works really well.

Thanks

-- Jeanfrancois


>
> http://forums.java.net/jive/thread.jspa?messageID=275634
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>