Howdy,
Put the information in a configuration file your clients read when they
start up.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: rf [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 05, 2003 12:06 PM
>To: Tomcat Users List
>Subject: Re: Hostname/port from ServletContext
>
>
>--- Tim Funk <[EMAIL PROTECTED]> wrote:
>> You can't. That is because the context runs in some
>> type of service
>> which will present you with the requests. So only at
>> request time can
>> you know the hostname and port number of the server.
>>
>
>Thanks for the info. I understand - the context is at
>a lower layer. Let me explain my problem, may be you
>can suggest me a soln.
>
>I have some funcionality available on my server that
>is supposed to be used by clients over network(http).
>Now to demonstrate this I have some sample clients
>within my server, how are these supposed to connect to
>the server? I need the hostname & port to construct
>the server URL at beginnning of my web application,
>and make it available to the sample clients to use.
>
>How is this kind of a problem typically approached?
>
>Thanks
>rf
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Tax Center - forms, calculators, tips, more
>http://taxes.yahoo.com/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to