Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 83515 invoked from network); 3 Oct 2007 14:56:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 14:56:06 -0000 Received: (qmail 61782 invoked by uid 500); 3 Oct 2007 14:55:56 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 61760 invoked by uid 500); 3 Oct 2007 14:55:56 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 61751 invoked by uid 99); 3 Oct 2007 14:55:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 07:55:55 -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 (athena.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, 03 Oct 2007 14:55:57 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Id5dQ-0005KC-Gj for camel-user@activemq.apache.org; Wed, 03 Oct 2007 07:55:36 -0700 Message-ID: <13020650.post@talk.nabble.com> Date: Wed, 3 Oct 2007 07:55:36 -0700 (PDT) From: Ravi116 To: camel-user@activemq.apache.org Subject: Re: Example of request reply In-Reply-To: <46EFA1D2.5020204@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ravi.varanasi@countrywide.com References: <12753590.post@talk.nabble.com> <46EFA1D2.5020204@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, Is the web services example available now as part of snapshot download ? I am new to camel and cxf. My simple use case is to publish a message to a active mq topic and have it route the message to a cxf web service. Here is the sample code below - private static String serviceEndpointURI = "cxf://" + SERVICE_ADDRESS + "?" + SERVICE_CLASS + "&dataFormat=POJO"; ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false"); context.addRoutes(new RouteBuilder() { public void configure() throws Exception { from("test-jms:queue:test.queue").to(serviceEndpointURI); } }); CamelTemplate template = new CamelTemplate(context); context.start(); for (int i = 0; i < 10; i++) { template.sendBody("test-jms:queue:test.queue", "Test Message: " + i); } Thread.sleep(1000); context.stop(); Will the code above work ? Ravi willem.jiang wrote: > > Hi , > I am working on camel-cxf component which will help you to do some > router work between 2 Web Services. My big patch just been applied in > the trunk, you can take a look at the unit test of camel-cxf component. > https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRouterTest.java > I will add a Web Service router example some time this week :) > > Willem. > xtof wrote: >> Hello, >> >> I'm quite new to Camel, and I'm trying to understand how implementing a >> gateway between 2 Web Services. It requires to implement a request-reply >> mechanism but I cannot find any example. >> Could you help? >> >> Thank. >> Christophe >> > > > -- View this message in context: http://www.nabble.com/Example-of-request-reply-tf4473066s22882.html#a13020650 Sent from the Camel - Users mailing list archive at Nabble.com.