To communicate with the server you will need to know the port before you
start communicating so you will have to configure your app to talk to
the correct port before it can have a chat with the appserver.
Many protocols of course have default ports, and Java knows those well
so for a lot of things (like JNDI, RMI, HTTP, etc) all you need to do is
use the correct classes and those will know the port to use themselves
unless the appserver you are talking to is not configured with defaults
in which case you will indeed have to look in the appserver
configuration (or talk with the administrator of that server).
Jeroen Wenting
P.S. to whom this may concern, we're getting 'out of office' messages
again. Please exclude mailing lists from aurtoreplies.
Agarwal, Naresh wrote:
>Hi Jeoren,
>
>I want to read the application server from web application code. Do you mean to say that I need to get it by reading the app server config files?
>
>thanks,
>Naresh Agarwal
>
>-----Original Message-----
>From: Jeroen Wenting [mailto:jwenting@(protected)]
>Sent: Friday, December 05, 2003 1:50 PM
>To: J2EE-INTEREST@(protected)
>Subject: Re: how to get app server port no. from webapp?
>
>
>this is usually defined somewhere in the appserver configuration files.
>
>Agarwal, Naresh wrote:
>
>
>
>>Hi
>>
>>Is there any to get the port no. at which application server is running from the web application?
>>
>>thanks,
>>Naresh Agarwal
>>
>>
===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".