[ https://issues.apache.org/activemq/browse/AMQ-699?page=all ]

Hiram Chirino reassigned AMQ-699:
---------------------------------

    Assign To: Hiram Chirino

> Add PropertyPlaceholderConfigurer to default activemq.xml
> ---------------------------------------------------------
>
>          Key: AMQ-699
>          URL: https://issues.apache.org/activemq/browse/AMQ-699
>      Project: ActiveMQ
>         Type: Improvement

>   Components: Broker
>     Versions: 4.0 RC3, 4.0 RC2, 4.0 M4
>     Reporter: Jason Dillon
>     Assignee: Hiram Chirino
>      Fix For: 4.0.1, 4.1

>
>
> The default activemq.xml should include a Spring 
> PropertyPlaceholderConfigurer to allow the activemq.home property to be used 
> to root directories.
> For example, this configuration will save data to $\{activemq.home}/var/data 
> always, no matter where the script was run from.
> {code:xml}
> <beans xmlns="http://activemq.org/config/1.0";>
>     <bean 
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>         <property name="systemPropertiesModeName" 
> value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
>     </bean>
>     <broker useJmx="true">
>         <persistenceAdapter>
>             <journaledJDBC journalLogFiles="5" 
> dataDirectory="${activemq.home}/var/data"/>
>         </persistenceAdapter>
>     
>         <transportConnectors>
>             <transportConnector name="default" uri="tcp://localhost:16161" 
> discoveryUri="multicast://default"/>
>         </transportConnectors>
>     </broker>
> </beans>
> {code} 
> Also, the default Log4j configuration should be augmented to use this 
> property for the out appender:
> {code}
> # File appender
> log4j.appender.out=org.apache.log4j.RollingFileAppender
> log4j.appender.out.file=${activemq.home}/var/log/activemq.log
> log4j.appender.out.maxFileSize=1024KB
> log4j.appender.out.maxBackupIndex=5
> log4j.appender.out.append=true
> log4j.appender.out.layout=org.apache.log4j.PatternLayout
> log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - 
> %m%n
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to