Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 30368 invoked from network); 12 May 2007 04:37:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 May 2007 04:37:02 -0000 Received: (qmail 80992 invoked by uid 500); 12 May 2007 04:37:09 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 80750 invoked by uid 500); 12 May 2007 04:37:08 -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 80741 invoked by uid 99); 12 May 2007 04:37:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2007 21:37:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.101.216.164] (HELO duro.intalgent.com) (66.101.216.164) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2007 21:37:00 -0700 Received: from [172.16.200.130] (localhost [127.0.0.1]) by duro.intalgent.com (8.13.1/8.13.1) with ESMTP id l4C4aavL027255 for ; Sat, 12 May 2007 00:36:39 -0400 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: <51B518A0-7F11-457C-A092-A14B3B9165E7@intalgent.com> <0F6D4119-A132-4AB6-B3AA-953E7EEDF5BF@intalgent.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2DFAE8F7-C37E-4D34-8290-65A9F49C4AA2@intalgent.com> Content-Transfer-Encoding: 7bit From: Jeff Gunther Subject: Re: [camel] Spring and Custom Components Date: Sat, 12 May 2007 00:36:26 -0400 To: users@activemq.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On May 11, 2007, at 11:16 PM, James Strachan wrote: > On 5/10/07, Jeff Gunther wrote: >> Hi James, >> >> Thank you for the very detailed follow up! That worked wonderfully. > > Great! Just out of interest, do you fancy contributing your > component :) Sure. What's the best method to send you the component? >> Related to this issue, how would I set the ConnectionFactory for the >> JMS Component? > > Here's an example that shows you how to do it in Java code... > http://activemq.apache.org/camel/walk-through-an-example.html > > Also I've just updated the wiki to show how to do the same thing via > Spring XML also (you might need to hit refresh on your browser) > http://cwiki.apache.org/CAMEL/how-do-i-add-a-component.html > http://cwiki.apache.org/CAMEL/how-do-i-configure-endpoints.html From my testing, it appears that the modification you made to the JmsComponent starts it's own broker. Is this accurate? If so, how can I connect to a standalone broker or how can I configure the JmsComponent to use an ActiveMQ persistence adapter and MySQL data- source? Currently, I'm using the following Spring configuration to use a ActiveMQ persistence adapter and a MySQL data-source: vm://localhost tcp://localhost:9000 Jeff Gunther