I need to be able to set attributes globally, not only for a specific web
app, but also for the whole jvm.

-----Original Message-----
From: Kanan Khokhani [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 11:02 AM
To: [EMAIL PROTECTED]
Subject: Re: global params on startup


hi,
have u tried setting attributes to ur servlet context,
that way u can have global variables for ur web application
----- Original Message -----
From: "Greg Hanson" <[EMAIL PROTECTED]>
To: "Tomcat (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 11:48 AM
Subject: global params on startup


> I'm trying to establish global params on startup of tomcat.  I have setup
> the following in tomcat.sh:
>
> $JAVACMD $TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME}
> -Dcom.argussoft.util.sysPropertiesDriver=com.argussoft.util.SysPropertiesD
ri
> verSimpleFile
> -Dcom.argussoft.util.SysPropertiesDriverSimpleFile.fileName=${TOMCAT_HOME}
/S
> ystem.properties org.apache.tomcat.startup.Tomcat "$@" &
>
> I'm using the -D directive to add parameters to the jvm however these
named
> value pairs are not actually being established in the runtime environment.
>
> Does anyone have any suggestion that might enable me to initialize
> additional parameters globally so that all servets will have access to
these
> parameters?
>
> Thanks,
>
> Greg


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to