> On 2025 Aug 16, at 11:35, Daniel Schwartz <d...@danielgschwartz.com> wrote:
> 
> Working through the numerous replies  ...
> 
> -----Original Message-----
> From: Robert Turner <rtur...@e-djuster.ca.INVALID> 
> Sent: Saturday, August 16, 2025 1:03 AM
> To: Tomcat Users List <users@tomcat.apache.org>
> Subject: Re: [EXTERNAL EMAIL] How to access a REST service
> 
> Dan,
> 
> What's your thread pool size?
> 
> DGS: I don't know how to determine this.


GlassFish does seem to be somewhat limited in its reporting of the 
configuration details. The 4.1 doc is even worse than the current 7.0 - wordy, 
but sparse details. They may be a GlassFish management page that reports DB and 
thread pool settings, but I haven’t found it yet.


> Could you provide a sample of the code that uses the connection?
> 
> DGS: Here is the current version of the code fragment that retrieves the list 
> of countries.


I think what Robert is looking for is the code in GetCountryList, not the code 
that acquires the connection object.


>  The method call "GetCountryList.doIt(connection);" does create a prepared 
> statement, but this is always closed immediately after use.  In any case, the 
> DB connection is always closed in the code below, as far as I can tell.  I've 
> never seen an exception thrown in the running code, so I don't see any 
> possibility for a memory leak.


What about the other actual usage of the connection object? I believe you have 
stated that there are 4 such instances.

  - Chuck


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to