Wojciech Ciesielski ha scritto:
We are trying to create distributed computing environment based on web-apps with one master server where multiple processing servers register themselves. Communication is done by calling action via HTTP. And therefore I have to let master server know about URL of processing server interface...
This is easier then. When the "slave" server registers itself, the "master" server can know its IP address by using ServletRequest.getRemoteAddr (or .getRemoteHost). The context name can be passed by the "slave" server (as Dave wrote, ServletContext.getServletContextName).
For the port... I have no idea...
HTH a bit
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to