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

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

问题描述

我有一个旧的遗留 Java Web 应用程序,我想将它部署在与我的 asp.net 应用程序(在 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 应用程序非常简单,只有几个 serverlet(没有 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.

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

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