Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 79718 invoked from network); 6 Jun 2008 03:43:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 03:43:47 -0000 Received: (qmail 17397 invoked by uid 500); 6 Jun 2008 03:43:49 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 16920 invoked by uid 500); 6 Jun 2008 03:43:48 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 16909 invoked by uid 99); 6 Jun 2008 03:43:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 20:43:48 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=FM_FAKE_HELO_VERIZON,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of glen.mazza@verizon.net designates 206.46.252.44 as permitted sender) Received: from [206.46.252.44] (HELO vms044pub.verizon.net) (206.46.252.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 03:42:50 +0000 Received: from [192.168.1.43] ([70.17.127.34]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K2000IBMPUSAMF0@vms044.mailsrvcs.net> for users@cxf.apache.org; Thu, 05 Jun 2008 20:37:41 -0500 (CDT) Date: Thu, 05 Jun 2008 21:37:40 -0400 From: Glen Mazza Subject: Re: Simple XML router using CXF In-reply-to: <17668517.post@talk.nabble.com> To: users@cxf.apache.org Message-id: <1212716260.6175.3.camel@gmazza-desktop> MIME-version: 1.0 X-Mailer: Evolution 2.12.1 Content-type: text/plain Content-transfer-encoding: 7bit References: <17668517.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org These requirements look like you would benefit from an ESB like Mule or ServiceMix. For the proprietary BEA AquaLogic Service Bus, for example, the tutorials here[1] are very similar to your requirements. Glen [1] http://edocs.bea.com/alsb/docs30/tutorial/index.html 2008-06-05 sha_cxf wrote: > I want to write a xml message router using cxf but I am not very clear about > the internal working of cxf. > > A sample scenario that I want to implement is something like this - > > There are two services - ADD (hosted on host1:9000 and host1:9001) & > SUBTRACT (hosted on host2:9000 and host2:9001). > > The router listening on host3:7777 would decide the target service for the > xml message (not bound to any schema) based on the xml message (using > xquery). > > After deciding the target service it would decide on the specific > connection(host*:9000 or host*:9001) in say a roundrobin fashion.Then fire > that message to that service. > > Receive a response from the service and pass it to the client. > > How can it be done using CXF? >