Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2ECBA94E1 for ; Wed, 7 Mar 2012 19:28:10 +0000 (UTC) Received: (qmail 7170 invoked by uid 500); 7 Mar 2012 19:28:09 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 7063 invoked by uid 500); 7 Mar 2012 19:28:09 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 89157 invoked by uid 99); 7 Mar 2012 19:22:11 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Date: Wed, 7 Mar 2012 11:21:43 -0800 (PST) From: codemonkey73 To: users@camel.apache.org Message-ID: <1331148103549-5545275.post@n5.nabble.com> Subject: how to specify which method when calling a direct route? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org We've built a small directory of services (POJOs) for which we have built direct to bean routes. They've worked so far when using a ProducerTemplate to call the direct route. To specify the method when using ProducerTemplate, we use requestBodyAndHeader("direct:myService", [methodparameterOrNull], "CamelBeanMethodName", "myServiceMethodSignature"). Now I'm trying to call these services from an established web project which doesn't use spring or camel. I'm trying to minimize the changes to that project and keep spring and camel out, so I thought I would try to set up a servlet route in the Camel project, and then route that servlet call to the services directory via a direct route. The simple servlet routing is working, but what I can't figure out is the routing from the servlet to the existing direct routes of the services. I've tried variations of the following: from("servlet:///servletRouteMapping"). setHeader("CamelBeanMethodName", constant("myServiceMethodSignature")). to("direct:myService"); The response my client gets is 'Not Implemented Yet'. I was planning on using different servlet mappings and routes for each of the methods of the service. -- View this message in context: http://camel.465427.n5.nabble.com/how-to-specify-which-method-when-calling-a-direct-route-tp5545275p5545275.html Sent from the Camel - Users mailing list archive at Nabble.com.