getServerPost() says, "to which port was the request originally sent?" getLocalPost() says, "on which port did the request end up with?"
all request are send to a single port(server port), where the server is listening. then the server find another port(Local port) to handle this thread, so that the app server can handle many client at the sametime.
SCJP,SCWCD,SCBCD<br />Oracle 10g OCA DBA in progress<br />------------------------<br />Good judgement comes from experience, and experience comes from bad judgement.
Joined: Jul 01, 2004
It means this is useful when we configure Apache & Tomcat together.
Lets say I configure Apache at port 80 and Tomcat at port 8080, can i say getServerPost() refers to port 80 and getLocalPost() refers to 8080 port.
Am I right in understanding this?
Lets say I use only Tomcat at port 80 in this case I cannot use getLocalPost() rite?