Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 45389 invoked from network); 12 May 2008 15:19:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 May 2008 15:19:20 -0000 Received: (qmail 6045 invoked by uid 500); 12 May 2008 15:19:21 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 6020 invoked by uid 500); 12 May 2008 15:19:21 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 6009 invoked by uid 99); 12 May 2008 15:19:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2008 08:19:21 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2008 15:18:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 95F492388A17; Mon, 12 May 2008 08:18:56 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r655516 - in /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel: CamelMessageProducer.java component/JournalEndpoint.java Date: Mon, 12 May 2008 15:18:56 -0000 To: commits@activemq.apache.org From: jstrachan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080512151856.95F492388A17@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jstrachan Date: Mon May 12 08:18:52 2008 New Revision: 655516 URL: http://svn.apache.org/viewvc?rev=655516&view=rev Log: added refactor to make it easier to create endpoint instances from a spring.xml with minimal constructors for https://issues.apache.org/activemq/browse/CAMEL-505 Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel/CamelMessageProducer.java activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel/component/JournalEndpoint.java Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel/CamelMessageProducer.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel/CamelMessageProducer.java?rev=655516&r1=655515&r2=655516&view=diff ============================================================================== --- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel/CamelMessageProducer.java (original) +++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel/CamelMessageProducer.java Mon May 12 08:18:52 2008 @@ -87,7 +87,7 @@ throw new IllegalArgumentException("Invalid destination setting: " + destination + " when expected: " + this.destination); } try { - JmsExchange exchange = new JmsExchange(endpoint.getContext(), ExchangePattern.InOnly, camelDestination.getBinding(), message); + JmsExchange exchange = new JmsExchange(endpoint.getCamelContext(), ExchangePattern.InOnly, camelDestination.getBinding(), message); producer.process(exchange); } catch (JMSException e) { throw e; Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel/component/JournalEndpoint.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel/component/JournalEndpoint.java?rev=655516&r1=655515&r2=655516&view=diff ============================================================================== --- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel/component/JournalEndpoint.java (original) +++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/camel/component/JournalEndpoint.java Mon May 12 08:18:52 2008 @@ -58,6 +58,11 @@ this.directory = directory; } + public JournalEndpoint(String endpointUri, File directory) { + super(endpointUri); + this.directory = directory; + } + public boolean isSingleton() { return true; }