2 Replies Latest reply on Jan 15, 2012 2:22 AM by gamvi01

    Can JBoss read properties from a file?

      Rather than passing properties with -D option can JBoss read list of properties defined in a properties file?

        • 1. Re: Can JBoss read properties from a file?

          Try "-P my.properties".

          • 2. Re: Can JBoss read properties from a file?
            gamvi01

            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