轻量级servlet引擎,用于通过IIS提供java应用程序 [英] Lightweight servlet engine for serving java application via IIS

查看:146
本文介绍了轻量级servlet引擎,用于通过IIS提供java应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个旧的遗留Java Web应用程序,我想在与我的asp.net-applications(在IIS 7上运行)相同的服务器上部署。我需要在端口80上运行所有应用程序,因此我不能在不同的端口上安装两个Web服务器。

I have an old legacy java web application that I want to deploy on the same server as my asp.net-applications (running on IIS 7). And I need to have all applications running on port 80, so I can't just install two web servers on different ports.

java应用程序非常简单,只有几个服务器小程序(没有JSP),其功能非常接近Hello World。所以我希望servlet引擎尽可能轻量级。我认为Tomcat对此有点矫枉过正。

The java-application is really simple, just a couple of serverlets (no JSP) with functionality pretty close to "Hello World". So I want the servlet engine to be as lightweight as possible. I consider Tomcat to be overkill for this.

这样的产品是否存在或我是否遇到Tomcat?

Does such a product exist or I'm I stuck with Tomcat?

推荐答案

查看 Jetty 。它可以从标准的Main调用中调用,并且很好地处理servlet容器(例如,GWT调试托管在Jetty环境中)。

Have a look at Jetty. It can be invoked from a standard Main invocation, and handles servlet containers pretty well (GWT debugging is hosted in a Jetty environment, for example).

我用过这个用于调试Lift应用程序,并留下了非常深刻的印象。

I've used this for debugging Lift applications, and been pretty impressed.

要通过IIS将请求转发到Jetty,您可以尝试 mod_jk 。问题是IIS和Java / JSP不能正常工作,因为IIS需要附加组件来支持VM的加载和JSP / Java内容的反映。有一篇关于如何做到这一点的优秀文章这里

To forward requests through IIS to Jetty you can try mod_jk. The problem is that IIS and Java/JSP don't Just Work because IIS needs add-ons to support the loading of the VM and the reflection of JSP/Java content. There is an excellent article on how this can be done here.

这篇关于轻量级servlet引擎,用于通过IIS提供java应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆