Tomcat 9.0.87 not releasing or re-using the pooled connections.

2025-08-01 Thread Parameshwara Bhat
Hello All, I am working on a task of migrating a  running a JSP/JSF application on tomcat-6.0 to tomcat 9.0 My installation of tomcat-9.0.87 is on Opensuse-Leap-15.6. Database is postgresql 17, using postgresql-42.7.7.jar for driver. I am able to run legacy application on tomcat-9.0.87 afte

RE: How to access a REST service

2025-08-01 Thread Daniel Schwartz
Hello again, Thorsten, You can ignore my query about identifying the start and end of user sessions. Upon further reflection, I realize that this can't be done within the webservice. My webservice is the backend for a website the uses Next.js, and I think that this is where the sessions are i

RE: How to access a REST service

2025-08-01 Thread Daniel Schwartz
Hello Thorsten, Please see my replies below, marked DGS. -Original Message- From: Thorsten Heit Sent: Friday, August 1, 2025 5:32 AM To: users@tomcat.apache.org Subject: Re: How to access a REST service Hi, > Daniel, > You might take a look at java’s “ try with” construct DGS: Someon

RE: How to access a REST service

2025-08-01 Thread Daniel Schwartz
Hello Rob, Thanks. I wrote this before I knew about the “try-with” feature, but will look into it. I see that an issue with my current code is that the connection won’t be closed if an error is thrown. Best regards, Dan From: Rob Sargent Sent: Thursday, July 31, 2025 11:22 PM To: Tomcat Us

Re: How to access a REST service

2025-08-01 Thread Thorsten Heit
Hi, Daniel, You might take a look at java’s “ try with” construct This is an important step, indeed: Here is a fragment of the code from the file HolidaysRESTJSONResource.jar. -- public class HolidaysRESTJSONResource {