RE: How to access a REST service

2025-08-08 Thread Daniel Schwartz
From: Rob Sargent Sent: Friday, August 8, 2025 2:38 PM To: Tomcat Users List Cc: Tomcat Users List Subject: Re: How to access a REST service > On Aug 8, 2025, at 10:23 AM, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > Hello > Robert, > > From your and other people's replie

RE: How to access a REST service

2025-08-08 Thread Daniel Schwartz
Hello Thorsten, -Original Message- From: Thorsten Heit Sent: Friday, August 8, 2025 2:55 PM To: users@tomcat.apache.org Subject: Re: How to access a REST service Hi Daniel, > You are correct, I only catch SQL exceptions. I have modified my code so > that the Connection object will be

Re: How to access a REST service

2025-08-08 Thread Thorsten Heit
Hi Daniel, You are correct, I only catch SQL exceptions. I have modified my code so that the Connection object will be closed if an SQL exception is thrown, but I wasn’t aware that there are other types of exceptions that I should look for. I will look into this. However, I don’t think tha

Re: How to access a REST service

2025-08-08 Thread Rob Sargent
> On Aug 8, 2025, at 10:23 AM, Daniel Schwartz wrote: > > Hello Robert, > > From your and other people's replies, I'm learning that tracking down memory > leaks can be quite daunting and possibly beyond me. > > I'm aware of the try-with-resources instruction and will look into it. I >

RE: How to access a REST service

2025-08-08 Thread Daniel Schwartz
Hello Robert, From your and other people's replies, I'm learning that tracking down memory leaks can be quite daunting and possibly beyond me. I'm aware of the try-with-resources instruction and will look into it. I wrote this code before learning about this. In any case, I will follow your