On 13/05/2015 17:11, Mark Struberg wrote:
Btw, did you look at catalina.properties ’shared.loader’ ? With this feature you can specify a directory with shared libs.
Yep, that's something I am considering to use in the near future.
Those will get a child ClassLoader under tomcats own CL but will be used as parent for all the WebAppClassLoaders. That way they are essentially shared. Note that @ApplicationScoped still will give you one instance per webapp. But static fields only exist once per the whole Tomcat.
ok, thanks for the warning on static fields. Ludovic | | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT. |
