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 <Resource ...> in %CATALINA_HOME%\conf\context.xml. Is this a mistake? Thanks, - MrChuoi On Sat, Jun 10, 2017 at 3:37 PM, Mark Thomas <ma...@apache.org> wrote: > 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 configuration? > > What type of resource? > > Where is it defined? > > What is the definition? > > How is it referenced in your web apps? > > Mark > > > > > > My system info: > > - Windows 7 Pro (64-bit) > > - Tomcat 8.5.12 and 8.5.15 (64-bit) > > - Java 1.7.0_80-b15 (64-bit) > > > > Thanks, > > > > - MrChuoi > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- ------------------------------------ http://forum.vnoss.org