Hello,
I am trying to set compression for messages using XML config. Here's a
snapshot of the activemq.xml
<!-- START SNIPPET: example -->
<beans>
<!-- Allows us to use system properties as variables in this configuration
file -->
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<connectionFactory useCompression="true" />
<broker brokerName="localhost" useJmx="true"
xmlns="http://activemq.org/config/1.0">
.
..
...
factory = new ActiveMQConnectionFactory(url);
boolean isUseCompression =
((ActiveMQConnectionFactory)factory).isUseCompression();
This still returns 'false'. Am I missing something??
Expicitly setting useCompression in the code works fine.
-iqz
--
View this message in context:
http://www.nabble.com/Setting-compression-through-XML-configuration-tf3931260s2354.html#a11150167
Sent from the ActiveMQ - User mailing list archive at Nabble.com.