This content has been marked as final.
Show 2 replies
-
1. Re: Can JBoss read properties from a file?
norman.richards Oct 19, 2005 5:24 PM (in response to mcevikce)Try "-P my.properties".
-
2. Re: Can JBoss read properties from a file?
gamvi01 Jan 15, 2012 2:22 AM (in response to norman.richards)It didnt work for me.
have created my.properties in \appserv\server\default\conf and started jboss using -Pmy.properties.
my.properties content
chorus.logs.dir=C:/ws/logs
and i have used it in jboss-log4j.xml as
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${chorus.logs.dir}/server.log"/>
<param name="Append" value="true"/>
but i dont see server.log thats getting created in c:\ws\logs