> I doubt whether it's the correct behaviour. In my case I was mislead
> for some time that this gives the correct port using some magic
> underneath and it took me some debuging time to realise the method
> does not return *correct* information.
>  
> IMHO if it can't return the correct one, then it should not return
> any assumptions.. At least we should document this behaviour in BIG
> CAPITAL letters all the API's. 
>  
Agreed, this happen if you have configure a HTTP transport in servlet
case too, then it get the HTTP transport and look at its' port so it
will return one in the transport configuration (sometime that may be
different from the what tomcat is running), but you will not have any
problem in SimpleHTTP case.

Deepal

-- 
Thank you!


http://blogs.deepal.org
http://deepal.org

Reply via email to