Rony, you might want to look into containerizing your webapps. We use an XSLT stylesheet (invoked by the entrypoint script) that transforms env params into context.xml params: https://github.com/AtomGraph/LinkedDataHub/blob/master/platform/context.xsl
Martynas On Wed, Apr 14, 2021 at 2:16 PM Rony G. Flatscher (Apache) <r...@apache.org> wrote: > > On 14.04.2021 13:25, Mark Thomas wrote: > > On 14/04/2021 12:22, Rony G. Flatscher (Apache) wrote: > >> Not finding any pointers, asking here: is it possible to define > >> environment variables for a webapp? > >> If so, how? > > > > You can only set them globally, for the Java process - not per web > > application. > > > > CGI creates a new process so can have a completely different set of > > environment variables. > > > > How about using the per web application JNDI context? > > Well the idea was to adjust PATH to have it point to a webapp based directory > containing the > binaries. :) > > ---rony > > P.S.: The aim would be to make it simple and easy for deploying webapps that > also need to have > access to non-Java binaries (executables and/or shared libraries). > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org