Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 70003 invoked from network); 20 Jun 2007 14:08:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2007 14:08:25 -0000 Received: (qmail 68760 invoked by uid 500); 20 Jun 2007 14:08:12 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 68736 invoked by uid 500); 20 Jun 2007 14:08:12 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 68722 invoked by uid 99); 20 Jun 2007 14:08:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 07:08:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 07:08:06 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I10qX-0008WE-LN for users@activemq.apache.org; Wed, 20 Jun 2007 07:07:45 -0700 Message-ID: <11214115.post@talk.nabble.com> Date: Wed, 20 Jun 2007 07:07:45 -0700 (PDT) From: keneida To: users@activemq.apache.org Subject: Re: Setting compression through XML configuration In-Reply-To: <11150167.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: keneida@o2.pl References: <11150167.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org You are setting the compression in the client configuration not tha AMQ server iqbalzaveri wrote: > > Hello, > I am trying to set compression for messages using XML config. Here's a > snapshot of the activemq.xml > > > > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> > > > > > xmlns="http://activemq.org/config/1.0"> > . > .. > ... > *********** > In the code: > > 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#a11214115 Sent from the ActiveMQ - User mailing list archive at Nabble.com.