简体   繁体   English

如何构造servlet URL

[英]How to construct servlet URL

Right now I have a servlet URL as below in one of my stored procedure , which is a working one. 现在,我的一个存储过程中有一个servlet URL,如下所示。

URL: http://server600.ctm.com/batch/shyamServletClass?parameter= || 网址: http : //server600.ctm.com/batch/shyamServletClass? parameter = || Incoming; 传入;

The above points to the servlet calss EAR which deployed in server600.ctm.com, but I need to modify the URL in scuh a way that it should point to my local system EAR. 上面指出了部署在server600.ctm.com中的servlet calss EAR,但是我需要以某种方式修改URL,使其指向我的本地系统EAR。 (That means the code which is there in (C://code/workspace/batch/shyamServletClass) (这意味着(C:// code / workspace / batch / shyamServletClass)中的代码

Suppose my IP Address is 172.16.61.208, how should I change it? 假设我的IP地址是172.16.61.208,该如何更改?

Let it point to http://localhost instead of http://server600.ctm.com . 让它指向http://localhost而不是http://server600.ctm.com

Note that this only works when the caller and the servlet runs at physically the same server machine. 请注意,这仅在调用方和Servlet实际在同一台服务器计算机上运行时才有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM