Why cant the master server provide the information, as i assume that some form of request is being made via a socket or otherwise to register the client? Even if no you can still do what you need by creating a socket or url connection to the master, and have the master send the details back.
A bit like when folk ask me for my mobile phone number i never remember it.. So i get them to give me their number and i call them and hang up to give them my number.. It all seems a bit promiscuous for me, but it should work just fine.. Mark On 3/16/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > On Thu, March 16, 2006 1:07 pm, Leon Rosenberg said: > > a bit crazy suggestion. Why don't you just parse the server.xml at > > startup to determine the port? > > I'll one-up your crazyness Leon... > > How about having a servlet as part of your webapp that starts up before > Struts does... then, from your plugin, you scan the local machine by > sending a request to every port from 1 to 10000, and whichever you get the > appropriate reply from is your port. Since we already know you can get > the hostname and the context name in the plugin, as long as you can assume > HTTP vs. HTTPS, this should work. Might delay startup, dunno how much. > > Yeah, yeah, I know, I know... NUTS! ;) LOL > > > regards > > Leon > > Frank > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > Java Web Parts - > http://javawebparts.sourceforge.net > Supplying the wheel, so you don't have to reinvent it! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]