Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 26348 invoked from network); 3 Dec 2007 13:33:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2007 13:33:04 -0000 Received: (qmail 90144 invoked by uid 500); 3 Dec 2007 13:30:24 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 90113 invoked by uid 500); 3 Dec 2007 13:30:24 -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 90104 invoked by uid 99); 3 Dec 2007 13:30:24 -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 05:30:24 -0800 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 (nike.apache.org: domain of ning.jiang@iona.com designates 12.170.54.180 as permitted sender) Received: from [12.170.54.180] (HELO amer-mx1.iona.com) (12.170.54.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 13:29:59 +0000 X-IronPort-AV: E=Sophos;i="4.23,243,1194238800"; d="dat'59?scan'59,208,59";a="7714947" Received: from amer-ems1.ionaglobal.com ([10.65.6.25]) by amer-mx1.iona.com with ESMTP; 03 Dec 2007 08:29:37 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C835B0.8CE5CBE5" Subject: RE: Camel and CXF Date: Mon, 3 Dec 2007 08:29:37 -0500 Message-ID: <9A4696F35B459043970EE4A85A317390025576@amer-ems1.IONAGLOBAL.COM> X-MS-Has-Attach: X-MS-TNEF-Correlator: <9A4696F35B459043970EE4A85A317390025576@amer-ems1.IONAGLOBAL.COM> Thread-Topic: Camel and CXF Thread-Index: Acg1qesZgoSt0q5fR7aMTaA57J+5OAABa/rh References: <4753DE0D.1050608@intracom.gr> <9A4696F35B459043970EE4A85A317390025574@amer-ems1.IONAGLOBAL.COM> <4753F499.8020306@intracom.gr> <9A4696F35B459043970EE4A85A317390025575@amer-ems1.IONAGLOBAL.COM> <4753F971.8030105@intracom.gr> From: "Jiang, Ning \(Willem\)" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C835B0.8CE5CBE5 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, To be honest , I didn't write any camel MBean , so I can't give you more = advise here. But if you have any issue related camel-cxf component,=20 please ask here or in camel mail list, since I am the writer of that = component,=20 I will try my best to give you the answer. Willem -----Original Message----- From: Jiorgos Miskakis [mailto:misge@intracom.gr] Sent: Mon 12/3/2007 20:41 To: cxf-dev@incubator.apache.org Subject: Re: Camel and CXF =20 O/H Jiang, Ning (Willem) ??????:=20 FYI The new found cxf-camel issue are Camel-243 and Camel-247. =09 Willem. =09 -----Original Message----- From: Jiorgos Miskakis [mailto:misge@intracom.gr] Sent: Mon 12/3/2007 20:20 To: cxf-dev@incubator.apache.org Subject: Re: Camel and CXF =20 O/H Jiang, Ning (Willem) ??????: =20 Hi, =09 What's the camel version are you using? If you are using camel 1.2.0 , please try the latest 1.3 snapshot since we fixed several camel-cxf = relate bugs here. =09 Willem. =09 -----Original Message----- From: Jiorgos Miskakis [mailto:misge@intracom.gr] Sent: Mon 12/3/2007 18:44 To: cxf-dev@incubator.apache.org Subject: Camel and CXF =20 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=20 missing something: Any ideas? =09 public class Camel extends ServiceMBeanSupport implements CamelMBean { /** * Logger for this class */ private static final Logger logger =3D = Logger.getLogger(Camel.class); =09 private static final String ROUTER_ADDRESS =3D=20 "http://localhost:8080/WSImplPort" = ; private static final String SERVICE_CLASS =3D=20 "serviceClass=3Dimpl.WSImplPortType"; private static final String WSDL_LOCATION =3D = "wsdlURL=3Dwsdl/mywsdl.wsdl"; private static final String SERVICE_NAME =3D=20 "serviceName=3D%7bhttp://impl%7dWSImplService"; private static final String SOAP_OVER_HTTP_ROUTER =3D=20 "portName=3D%7bhttp://impl%7dSoapOverHttpRouter"; =20 private static String ROUTER_ENDPOINT_URI =3D "cxf://" +=20 ROUTER_ADDRESS + "?" + SERVICE_CLASS + "&" + WSDL_LOCATION + = "&"=20 + SERVICE_NAME + "&" + SOAP_OVER_HTTP_ROUTER + "&dataFormat=3DPOJO"; =20 protected void createService() throws Exception { super.createService(); logger.warn("creatingService Camel"); } =09 protected void startService() throws Exception { logger.info("startService Camel"); super.startService(); } =09 public void create() throws Exception { super.create(); logger.warn("creating Camel"); startCamelService(); } =09 public void start() throws Exception { logger.warn("starting Camel"); super.start(); } =09 public void stop() { super.stop(); } =09 public void startCamelService() throws Exception { logger.info("startCamelService"); MyRouteBuilder builder =3D new MyRouteBuilder(); builder.configure(); } =20 public class MyRouteBuilder extends RouteBuilder { =09 public void configure(){ from(ROUTER_ENDPOINT_URI).process(new Processor() { public void process(Exchange exchange) { logger.info("exchange!!!: "+exchange); =20 } }).to("mock:result"); } } =20 } =09 =20 =20 The Camel Version that I'm using is the 1.2.0. =09 =20 Ok, thanks, i'm just checking out from the SVN trunk the new version. Would it be = possible to have an example of Mbean integration of Camel in an Mbean = server? Is the approach that i'm following fine? ------_=_NextPart_001_01C835B0.8CE5CBE5--