如何使用tomcat服务器的多个实例?
我有两个 *Servlet*,我想通过服务器的多个实例在同一服务器(tomcat6)上同时运行两个Servlet在 Windows 的不同端口上,是否有任何选项可以做到这一点。等待您的回复 提前致谢
I have two *Servlet* and i want to run both Servlet on the same time on same server(tomcat6) through multiple instance of a server on different port in Windows is there any options through i can do this. waiting for your response
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还没有描述是什么阻止您做您想做的事?
只需运行两个 tomcat 实例并同时请求两个 servlet 即可。如果您手动执行(使用浏览器),两个请求之间会有一个小的时间延迟,因此如果您想避免它,那么您可以使用 HttpUnit 之类的东西以编程方式触发请求。
You have not described what is preventing you from doing what you want to do?
Just run the two tomcat instances and request the two servlets at the same time. There will be a small time-lag between the two requests if you do it manually (using a browser), so if you want to avoid it then you can use something like HttpUnit to programmatically fire the request.