You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Vadim Pesochinskiy (JIRA)" <ji...@apache.org> on 2007/02/22 01:47:02 UTC
[jira] Created: (AMQ-1166) memoryManager configuration does not
call PropertyPlaceholderConfigurer
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.
[jira] Resolved: (AMQ-1166) memoryManager configuration does not
call PropertyPlaceholderConfigurer
Posted by "james strachan (JIRA)" <ji...@apache.org>.
[ 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.