getServerPort always return 80

2022-01-03 Thread 王 静凯
Hi, I use httpServletRequest.getServerPort() to get the port in my jsp. When the tomcat listen 8080 and nginx listen 80. Nginx has set ‘proxy_set_header Host $http_host’. Then the port 80 mapping to Internet via 10001. Use httpServletRequest.getHeader(“Host”) I can get the correct value of

RE: Do I Need Network NameSpaces to Solve This Tomcat+Connector/J Problem?

2022-01-03 Thread Eric Robinson
Hi Chris -- We have access to the configuration files, but not the source code. There is no "pool" reference in server.xml or any of the context.xml files. However, I did receive a call from a vendor tech this morning and they are exploring the question right now and will get back to me soon ho

Re: Do I Need Network NameSpaces to Solve This Tomcat+Connector/J Problem?

2022-01-03 Thread Christopher Schultz
Eric, On 12/30/21 19:03, Eric Robinson wrote: If I want to ignore the vendor's recommendation and try connection pooling anyway, is that something I can enable with a config file setting, or do they actually have to trigger it from within their code? That depends upon how they are obtaining data

Re: javax.servlet vs jakarta.servlet?

2022-01-03 Thread Mark H. Wood
On Thu, Dec 30, 2021 at 03:16:51PM -0500, Michael B Allen wrote: > On Thu, Dec 30, 2021 at 10:57 AM Christopher Schultz > wrote: > > > > You mean like ServletContext.getRealPath? > > Honestly I'm not sure how I feel about getRealPath. On the one hand, I > don't think it's reasonable to just prete