Implementation of AJP protocol in Java

2019-05-01 23:27发布

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" ?

标签: java client ajp
3条回答
看我几分像从前
2楼-- · 2019-05-01 23:43

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楼-- · 2019-05-01 23:50

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.

查看更多
混吃等死
4楼-- · 2019-05-02 00:02

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

查看更多
登录 后发表回答