On 6/16/07, iqbalzaveri <[EMAIL PROTECTED]> wrote:
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);
You are not looking up the ActiveMQConnectionFactory in spring. All <connectionFactory> does is define a spring bean which you can lookup. So you probably wanna add an id attribute too -- James ------- http://macstrac.blogspot.com/