activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Setting compression through XML configuration
Date Wed, 20 Jun 2007 14:18:54 GMT
On 6/16/07, iqbalzaveri <iqbal.zaveri@networkgeneral.com> 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/

Mime
View raw message