如何在Tomcat和Websphere之间做出妥协?
我们的团队在开发/修改 servlet 时面临困难。
该 servlet 存在一些未知问题,我们认为可能是由于请求过多所致。
我们希望找到一种方法,使请求可以排队。
但最重要的是,我们正在使用tomcat作为servlet容器来开发servlet,当我们将其放在生产服务器中时,我们公司使用websphere来保存它。
我不了解 websphere,但我确信它有某种方法来控制请求。但只允许我们使用tomcat来开发。因此我们不知道生产服务器中会发生什么,这让我们非常难过。当然,我们公司不可能再做一个websphere来供开发使用。
我能做些什么?
Our team is facing a difficuties while developing/modifying a servlet.
The servlet is having some unknown problem and we think I may due to too many request.
We would like to find a way so that the request could be queue up.
But what matter most is that we are developing the servlet using tomcat as the servlet container, when we put it in the production server, our company use websphere to hold it.
I don't know about websphere, but I am sure it have some way to control the requests. But we are only allowed to use tomcat to develop. Thus we do not know what would happen in the production server, this make us very sad. Of course, our company cannot afford to make another websphere for development usage.
What can I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您在 信息中心< 中找不到所需的信息/a>,您可能应该在 WAS 上进行测试/调试。有一个适用于 Windows 和 Linux 的免费开发人员许可证(您必须将其安装在您的开发计算机上 - 查看限制常见问题解答)。
虽然在开发中以 Tomcat 为目标有一些优点,但完全禁止目标应用程序服务器会适得其反。生产并不是您想要发现不兼容性的地方。
If you can't find the information you're looking for in the Infocenter, you should probably test/debug on WAS. There is a free developer license for Windows and Linux (you must install it on your development machine - see the FAQ for restrictions).
While there's some merit in targeting Tomcat in development, a complete ban on the target application server is counterproductive. Production is not the place you want to find incompatibilities.
Tomcat 和 Websphere 具有不同的体系结构和 servlet 引擎,我认为您无法保证在 Tomcat 上完美运行的应用程序在 Websphere 上也能完美运行。
Tomcat and Websphere has different architecture and servlet engines and i think you cannot get guarantee that application that perfectly runs on Tomcat will be as well on Websphere.
尝试使用JBoss免费版进行测试。与 Tomcat 相比,它更类似于 Websphere。
我们在其中一个项目中使用它来实现此目的 - 它涵盖了我们 99% 的部署问题。
另外,如果我没记错的话,存在 websphere 的开发许可证版本,而且它是免费的(但有疯狂的许可证限制)
Try to use JBoss free version for tests. It much more similar to Websphere than a Tomcat.
We use it for this purpose on one of the project - and it cover 99% of our problems with deploys.
Also if i remember it right exist development license version of websphere and it kind of free(but with mad license restrictions)