Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 65162 invoked from network); 3 Dec 2007 10:45:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2007 10:45:13 -0000 Received: (qmail 29904 invoked by uid 500); 3 Dec 2007 10:45:00 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 29864 invoked by uid 500); 3 Dec 2007 10:45:00 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 29855 invoked by uid 99); 3 Dec 2007 10:45:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 02:45:00 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [146.124.14.106] (HELO mailserv.intranet.gr) (146.124.14.106) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 10:45:00 +0000 Received: from mailserv.intranet.gr (localhost [127.0.0.1]) by mailserv.intranet.gr (8.13.6/8.13.1) with ESMTP id lB3AiZ7l012581 for ; Mon, 3 Dec 2007 12:44:35 +0200 (EET) Received: from iris.intranet.gr (iris.intranet.GR [146.124.80.178]) by mailserv.intranet.gr (8.13.6/8.13.1) with ESMTP id lB3AiZnj012577 for ; Mon, 3 Dec 2007 12:44:35 +0200 (EET) Received: from [146.124.139.125] ([146.124.139.125] verified) by iris.intranet.gr (CommuniGate Pro SMTP 4.3.8) with ESMTP id 17480114 for cxf-dev@incubator.apache.org; Mon, 03 Dec 2007 12:44:33 +0200 Message-ID: <4753DE0D.1050608@intracom.gr> Date: Mon, 03 Dec 2007 11:44:29 +0100 From: Jiorgos Miskakis User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: cxf-dev@incubator.apache.org Subject: Camel and CXF Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello everybody, I'm trying to deploy Camel as a sar in JBoss in order to route any CXF messages to a specific endpoint (in my case later will be ejb). This is the code which i used from the CXF examples but I'm still missing something: Any ideas? public class Camel extends ServiceMBeanSupport implements CamelMBean { /** * Logger for this class */ private static final Logger logger = Logger.getLogger(Camel.class); private static final String ROUTER_ADDRESS = "http://localhost:8080/WSImplPort"; private static final String SERVICE_CLASS = "serviceClass=impl.WSImplPortType"; private static final String WSDL_LOCATION = "wsdlURL=wsdl/mywsdl.wsdl"; private static final String SERVICE_NAME = "serviceName=%7bhttp://impl%7dWSImplService"; private static final String SOAP_OVER_HTTP_ROUTER = "portName=%7bhttp://impl%7dSoapOverHttpRouter"; private static String ROUTER_ENDPOINT_URI = "cxf://" + ROUTER_ADDRESS + "?" + SERVICE_CLASS + "&" + WSDL_LOCATION + "&" + SERVICE_NAME + "&" + SOAP_OVER_HTTP_ROUTER + "&dataFormat=POJO"; protected void createService() throws Exception { super.createService(); logger.warn("creatingService Camel"); } protected void startService() throws Exception { logger.info("startService Camel"); super.startService(); } public void create() throws Exception { super.create(); logger.warn("creating Camel"); startCamelService(); } public void start() throws Exception { logger.warn("starting Camel"); super.start(); } public void stop() { super.stop(); } public void startCamelService() throws Exception { logger.info("startCamelService"); MyRouteBuilder builder = new MyRouteBuilder(); builder.configure(); } public class MyRouteBuilder extends RouteBuilder { public void configure(){ from(ROUTER_ENDPOINT_URI).process(new Processor() { public void process(Exchange exchange) { logger.info("exchange!!!: "+exchange); } }).to("mock:result"); } } }