I want to ask general question regarding deployment descriptor (web.xml) file?
Can we specify communication endpoint in this file ?
for example I m using HTTPUrlConnection class in Servlet1. This Servlet1 then send GET reqest to Servlet2 which is running in VM and which processes the requst and prints something. By communication endpoint i mean the URL of Servlet2 which i have to specify in Servlet1 code. I want to access this URL somehow from web.xml of Servlet1. So in cases when Servlet2 moves to some other URL, i dont have to modify the Servlet1 code but web.xml of Servlet1.
Also can we specify somehow which HTTP methods are being used in which
servlet by web.xml?