perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kim Goldov <kgol...@gmail.com>
Subject Re: set environment variables in tomcat
Date Wed, 01 Jun 2011 22:31:54 GMT
Thanks everyone. Here is what I ended up with.

In my PerlHeaderParserHandler:

    $r->subprocess_env(AA_MYVAR => 'myvalue');
    $r->subprocess_env();

In jk.conf:

    JkEnvVar      AA_MYVAR

In Tomcat:

      out.println("AA_MYVAR is: " + request.getAttribute("AA_MYVAR") );

-- 
Kim

Mime
View raw message