Re: [Tomcat 8.5] Cannot obtain singleton resource with startStopThreads > 1

2017-06-11 Thread MrChuoi
gt; > On Sat, Jun 10, 2017 at 9:34 PM, Caldarale, Charles R < > chuck.caldar...@unisys.com> wrote: > >> > From: MrChuoi [mailto:mrch...@gmail.com] >> > Subject: Re: [Tomcat 8.5] Cannot obtain singleton resource with >> startStopThreads > 1 >> >>

Re: [Tomcat 8.5] Cannot obtain singleton resource with startStopThreads > 1

2017-06-10 Thread MrChuoi
Hi Chuck, On Sat, Jun 10, 2017 at 9:34 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: MrChuoi [mailto:mrch...@gmail.com] > > Subject: Re: [Tomcat 8.5] Cannot obtain singleton resource with > startStopThreads > 1 > > > OK. I will put th

RE: [Tomcat 8.5] Cannot obtain singleton resource with startStopThreads > 1

2017-06-10 Thread Caldarale, Charles R
> From: MrChuoi [mailto:mrch...@gmail.com] > Subject: Re: [Tomcat 8.5] Cannot obtain singleton resource with > startStopThreads > 1 > OK. I will put the resource in the context of each webapp to see what is > going on, but what I don't understand is why this configuration wo

Re: [Tomcat 8.5] Cannot obtain singleton resource with startStopThreads > 1

2017-06-10 Thread MrChuoi
Hi Chuck, On Sat, Jun 10, 2017 at 6:58 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: MrChuoi [mailto:mrch...@gmail.com] > > Subject: Re: [Tomcat 8.5] Cannot obtain singleton resource with > startStopThreads > 1 > > > Hi Mark, > > D

RE: [Tomcat 8.5] Cannot obtain singleton resource with startStopThreads > 1

2017-06-10 Thread Caldarale, Charles R
> From: MrChuoi [mailto:mrch...@gmail.com] > Subject: Re: [Tomcat 8.5] Cannot obtain singleton resource with > startStopThreads > 1 > Hi Mark, Don't top-post. Follow the mailing list guidelines published here: http://tomcat.apache.org/lists.html#tomcat-users > And to simpli

Re: [Tomcat 8.5] Cannot obtain singleton resource with startStopThreads > 1

2017-06-10 Thread MrChuoi
Hi Mark, I follow the guideline here http://tomcat.apache.org/tomcat-8.5-doc/jndi-resources-howto.html to create a Generic JavaBean class which is holding some static info internally. And to simplify the declaration of Resource in Tomcat, I put the in %CATALINA_HOME%\conf\context.xml. Is this a

Re: [Tomcat 8.5] Cannot obtain singleton resource with startStopThreads > 1

2017-06-10 Thread Mark Thomas
On 10/06/17 18:35, MrChuoi wrote: > Hi all, > > I can obtain my custom JNDI resource as singleton when starting all of my > web-apps sequentially. However, if I set startStopThreads > 1 to speedup > the loading process, Tomcat creates multiple instances of my resource. Did > I miss anything in