activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "james strachan (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AMQ-1166) memoryManager configuration does not call PropertyPlaceholderConfigurer
Date Wed, 07 Mar 2007 14:41:21 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-1166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

james strachan resolved AMQ-1166.
---------------------------------

    Resolution: Fixed

Wouldn't using the following work?

<usageManager id="memory-manager" limit="${com.barra.activemq.MEMORY_SIZE}"/>

where the MB is included in your property. 


> memoryManager configuration does not call PropertyPlaceholderConfigurer
> -----------------------------------------------------------------------
>
>                 Key: AMQ-1166
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1166
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>             Fix For: 4.1.1
>
>
> Following configuration throws exception because the placeholder is not replaced with
system property com.barra.activemq.MEMORY_SIZE. Spring placeholders work in all other places
in the configration, except the memory manager, because it is customized by AMQ.
> <beans>   
>     <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
 <!-- Allows us to use system properties as variables in this configuration file -->
>     <broker useJmx="true" deleteAllMessagesOnStartup="false" persistent="true" xmlns="http://activemq.org/config/1.0">
>         <memoryManager>
>             <usageManager id="memory-manager" limit="${com.barra.activemq.MEMORY_SIZE}
MB"/>
>         </memoryManager>
>         <managementContext>
>             <managementContext connectorPort="${com.barra.activemq.jmx.PORT}" jmxDomainName="apache.activemq"/>

>         </managementContext>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message