Assuming all of the "slaves" know the id of the "master", then maybe you 
have a RegisterServlet that's called by a slave processing servers during 
their init? http://javaalmanac.com/egs/javax.servlet/GetReqUrl.html

-Dennis




Wojciech Ciesielski <[EMAIL PROTECTED]> 
03/16/2006 10:52 AM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
Struts Users Mailing List <user@struts.apache.org>
cc

Subject
Re: obtaining server URL (or ip and port) from plugin







>>
>> I need to find URL to my application 
>> (http://myhost:8080/myAppContext) from within init() method of struts 
>> plugin (implementing PlugIn interface). Any ideas how can I do this 
>> programatically without specifying it explicitly in one of 
>> application configuration files?
> You can't do it, in any part of your web-app! But what do you need 
> your application URL for?
> Ciao
> Antonio
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...

Wojtek

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


Reply via email to