Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 64727 invoked from network); 23 Jul 2010 05:41:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jul 2010 05:41:35 -0000 Received: (qmail 73580 invoked by uid 500); 23 Jul 2010 05:41:35 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 73300 invoked by uid 500); 23 Jul 2010 05:41:32 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 73292 invoked by uid 99); 23 Jul 2010 05:41:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 05:41:31 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-ww0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 05:41:25 +0000 Received: by wwb22 with SMTP id 22so2545736wwb.20 for ; Thu, 22 Jul 2010 22:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=HEZjqZbN9vRbUMq/2I5vYULof7MVMGMgeo1Meru3xOI=; b=Qf/avO4wi5jWnsl3rGrMvUsmfpXD+pmcpfoiw1B1zdF6+wq4FLl9UI6p887uNvLMY0 oB+rQb8Go85nXSh0WyY1QNZHr0N6LYUbhvluSEVlzTkW2/o3iJ08SHsIqgQI84VJP2LX KeCEoB5x8MxvLRvGv3mOVcIkGlPd4pHlRdkOg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=u7fVTZqnSHZRVgUvqDblEHiuPeBV2RQMBEbQ82BRRSScl9tE51yn+O9NHy1Vn/vLHX XsTy0mfj8OxYFVTXUku5Y6Y7vyqhNia3NfQU+T77m8jUfbK74ecP8V8pnJ0jXhcphMQ3 AOX30/bMBCNOglCTOOHviL1yTMCTwgykbp1XU= Received: by 10.216.93.16 with SMTP id k16mr2934455wef.78.1279863665256; Thu, 22 Jul 2010 22:41:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.221.40 with HTTP; Thu, 22 Jul 2010 22:40:45 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Fri, 23 Jul 2010 07:40:45 +0200 Message-ID: Subject: Re: using a content router To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi You should start with reading this article to get familiar what Camel is http://architects.dzone.com/articles/apache-camel-integration Then check this getting started example which uses Java to define route http://camel.apache.org/walk-through-an-example.html You need to use a RouteBuilder as well to define your route in Java code. AMQ comes with Camel out of the box, and there is a AMQ config file which has Camel prepared. You gotta find this file and then adjust it to use your Java route builder See this page how to use the http://camel.apache.org/spring.html You then need to build your Java route builder as a .jar file and drop it into the AMQ/lib folder. Restart AMQ and it should pickup your route. The ActiveMQ in Action book also contains some information how to use Camel with AMQ. If you are serious with AMQ then this book is highly recommended. http://activemq.apache.org/books And likewise for Camel we got some books as well http://camel.apache.org/books.html On Thu, Jul 22, 2010 at 11:20 PM, Mark wrote: > I am interested in creating a content router in which I have message > sender "A" sending messages that get transformed and then routed to > two receivers. =A0I am new to camel and want to know how I can write > Routing rules and load them into ActiveMQ. =A0I read documentation on > setting up the routes, but not how to load the routes into ActiveMQ. > I don't want to use XML, I would rather write code to do this since > all the objects are custom to my project. > > Any help on this would be greatly appreciated. > > thanks > --=20 Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus