5 Replies Latest reply on Nov 11, 2010 10:02 PM by cshear

    HttpEventServlet  event() method never called if using mod_cluster

    cshear

      I'm using JBoss AS 5.1 GA and mod_cluster 1.1.0.

       

      My servlet implements org.jboss.servlet.http.HttpEventServlet for comet server push applications. Our servlet works well without installing mod_cluster - meaning the HttpEventServlet.event() method gets called correctly. But when I installed mmod_cluster, the servlet's init() method get called, but not event() method, therefore our current servlet() does not work if mod_cluster is installed and setup. If I implement doPost() and doGet() methods, then these 2 methods do get called, but then we are not using the event-driven comet servlet model.

       

      My question is: is there a way to make mod_cluster work with HttpEventServlet?

       

      My thinking is that if mod_cluster can not work with event-driven servlet which is NIO/APR based which is high performance, then mod_cluster is just not that much of a use, mod_cluster's objective is to increase scalability/performance by enabling easy/dynamic jboss server clustering, but yet defeats the capability of NIO/native APR, then it's just missing its point.

       

      Anyone can help me make mod_cluster to work with comet style HttpEventServlet?

       

      Thanks,

       

      Chris