I have a CometProcessor Servlet working fine in Apache Tomcat. My server.xml connector entry is:
<Connector connectionTimeout="20000" port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol" redirectPort="8443"/>
I can hit the servlet (named 'EventBus') with a URL to Tomcat directly like so:
http://xyz.com:8080/EventBus
I have Apache httpd serving up .jsp files and servlets with a basic workers.properties file with a worker like:
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
This works fine with everything but my CometProcessor servlet. When I try to hit this servlet I get:
HTTP method GET is not supported by this URL
Does anyone know how to properly forward requests from Apache httpd to Apache Tomcat for an NIO connection like a CometProcessor?
Thanks for any help.
I don't think you can use CometProcessor with Apache. CometProcessor requires asynchronous I/O, it's impossible doing this through Apache httpd.
JK doesn't work for sure because only APR and NIO connectors supports CometProcessor.
You might be able to use mod_proxy to forward the connection to your NIO connector but you would not get event asynchronously.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With