tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Stör <mar...@frightanic.com>
Subject Re: properties file confusion
Date Thu, 10 Apr 2003 06:35:02 GMT
RE: properties file confusion> Probably because you're running Tomcat as a Windows service
with the
> local system account as the user, and the system32 directory is the
> default directory for the service.  

Oh yeah, that makes sense. Thanks.

> You'd be better off putting the location of your properties file in
> your web.xml: 
>     <init-param>
>       <param-name>properties</param-name>
>       <param-value>C:/myData/my.properties</param-value>
>     </init-param>
> and reading it from there using
> servletConfig.getInitParameter("properties"). 

My class is not a servlet. What would I do it if it is used by a regular desktop app? So,
servletConfig is not an option.

Marcel
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message