AJP协议的Java实现

发布于 2024-07-07 11:06:54 字数 185 浏览 5 评论 0原文

在 Apache 中,您可以使用“mod_jk”模块使用“AJP”协议向 Tomcat 发送 HTTP 请求,这比 HTTP 本身要高效得多。

我想做同样的事情,但是是从 Java 程序中进行。 我想使用“AJP”,因为它的性能很好(而且Tomcat毕竟也不错)。

有人知道“AJP”客户端的 Java 实现吗?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

原野 2024-07-14 11:06:54

%TOMCAT_HOME%/server/lib 中的 tomcat-ajp.jar 没有 AJP 实现吗?

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

迷荒 2024-07-14 11:06:54

如果有人需要的话,可以使用开源 Apache ajp-client

这是 ajp13 客户端的 java 实现,允许使用此协议向 servlet 容器发送请求。

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.

梦里寻她 2024-07-14 11:06:54

没有任何真正的想法,但是您研究过 Tomcat 的源代码吗? 也许Tomcat不仅仅实现了AJP的接收端。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文