What is the advantage to using catalina.properties vs setenv.sh?

On Thu, Aug 22, 2013 at 11:37 AM, Konstantin Kolinko <knst.koli...@gmail.com
> wrote:

> 2013/8/22 Daniel Mikusa <dmik...@gopivotal.com>:
> > On Aug 22, 2013, at 8:48 AM, B W <bw20130...@gmail.com> wrote:
> >
> >> I have a GWT application which currently is running on GlassFish 3.x. I
> >> want to migrate to Tomcat 7. Previously, I would store properties that
> the
> >> GWT application could retrieve by
> >> org.apache.commons.configuration.SystemConfiguration.
> >
> > Looks like this class is loading items from system properties.
> >
> >> I would put these
> >> settings in my domain.xml for GlassFish. What is the Tomcat equivalent?
> I
> >> tried putting settings under my WEB-INF\web.xml file as
> >> context-paramsection. However, my GWT application cannot see them
> >> still.
> >>
> >> Where should I put settings that can be read by calling
> >> org.apache.commons.configuration.SystemConfiguration from my GWT app
> from
> >> Tomcat?
> >
> > Based on that, you'd want to add system properties in
> "$CATALINA_BASE/bin/setenv.sh".  Note this file doesn't exist by default,
> you'll need to create it.
> >
> > Ex:
> >
> >    CATALINA_OPTS="-Dmy.property.1=xyz -Dmy.property.2=abc"
> >
>
> Properties that are used by a web application (and not by Java itself
> during its startup) can also be added to conf/catalina.properties
> file.
>
> http://tomcat.apache.org/tomcat-7.0-doc/config/index.html
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to