|
|
|
Re: Setting vm-arugements or properties for a tomcat deploy [message #540980 is a reply to message #540546] |
Thu, 17 June 2010 20:48 |
|
Hi Kerstin,
you can add system properties in your web.xml like this:
<init-param>
<param-name>commandline</param-name>
<param-value>-Dyour.parameter=value</param-value>
</init-param>
HTH, Ralf
Kerstin wrote:
> Stefan Röck wrote on Wed, 16 June 2010 08:05
>> Hi Kerstin,
>>
>> you can pass the properties when starting tomcat (if you're on Linux,
>> look at /etc/default/tomcat).
>>
>> Here are some alternatives:
>> http://www.velocityreviews.com/forums/t144344-tomcat-5-0-set
>> ting-system-properties-for-an-application.html
>>
>> Regards,
>> Stefan.
>
>
> Hi Stefan, thanks for your advice.
>
> I am not on linux and we also don´t want to use CATALINA_OPTS because
> more applications should run on that server.
>
> Is there another opportunity for setting the properties so that they are
> accessible with System.getProperty()?
> Using <env-entry> makes a lot of re-implementation necessary.
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03904 seconds