Port Number
I am trying to implement a failover for my scheduler. If I have multiple orions running on a single machine then the only way to distinguish between them is to use a host name and a port number. My problem is in getting the port number of either orion or rmi server associated with a specific instance of the application server. I was trying to get to rmi registry through jndi service but I could not find rmi service binding in the initial context or in any of its subcontexts. Any thoughts on how to get the port number? Roman _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Re: Port Number
request.getServerPort(); - Original Message - From: Namor Taror [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, December 03, 2001 5:00 PM Subject: Port Number is there any standard api that returns a port number of the server it listens to? _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: Port Number
that method will return the port to which the http client request arrived, not necessarily the http port of orion. if you use apache in front of orion and use URL-rewriting via frontend host=www.bigcorp.com port=80 / request.getServerPort() will give you port 80, while orion runs on some other port. I haven't found a way to get the actual port where the web container listens to. request.getServerPort(); - Original Message - From: Namor Taror [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, December 03, 2001 5:00 PM Subject: Port Number is there any standard api that returns a port number of the server it listens to? Marco Bonechi e-mail: [EMAIL PROTECTED] ZEROPIU S.p.A. via Fra Luca Pacioli, 3, 20144 Milano tel. +39 02 83102.300 fax +39 02 83102.310 via Catalani, 50, 00199 Roma tel. +39 06 86386464 Fax +39 06 86398076 homepage: http://www.zeropiu.com
Port Number
is there any standard api that returns a port number of the server it listens to? _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp