Implementation of AJP protocol in Java

半腔热情 提交于 2019-12-22 07:00:23

问题


From Apache, you can use the "mod_jk" module to send HTTP requests to Tomcat using the "AJP" protocol, which is far more efficient that HTTP itself.

I want to do the same, but from a Java program. I want to use "AJP" because of its good performances (and Tomcat is not bad after all).

Does someone know about a Java implementation of the client side of "AJP" ?


回答1:


Doesn't the tomcat-ajp.jar present in %TOMCAT_HOME%/server/lib have the AJP implementation?




回答2:


There's open source Apache ajp-client available if someone needs it:

This is a java implementation of an ajp13 client, allowing to send requests to a servlet container using this protocol.




回答3:


Whithout any real idea, but have you looked into Tomcat's source code, yet? Maybe Tomcat doesn't just implement the receiving end of AJP.



来源:https://stackoverflow.com/questions/149662/implementation-of-ajp-protocol-in-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!