cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiang, Ning \(Willem\)" <>
Subject RE: Camel and CXF
Date Mon, 03 Dec 2007 13:29:37 GMT

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, 
please ask here or in camel mail list, since I am the writer of that component, 
I will try my best to give you the answer.


-----Original Message-----
From: Jiorgos Miskakis []
Sent: Mon 12/3/2007 20:41
Subject: Re: Camel and CXF
O/H Jiang, Ning (Willem) ??????: 

	FYI The new found cxf-camel issue are Camel-243 and Camel-247.
	-----Original Message-----
	From: Jiorgos Miskakis []
	Sent: Mon 12/3/2007 20:20
	Subject: Re: Camel and CXF
	O/H Jiang, Ning (Willem) ??????:

		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.
		-----Original Message-----
		From: Jiorgos Miskakis []
		Sent: Mon 12/3/2007 18:44
		Subject: Camel and CXF
		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" <http://localhost:8080/WSImplPort> ;
		    private static final String SERVICE_CLASS = 
		    private static final String WSDL_LOCATION = "wsdlURL=wsdl/mywsdl.wsdl";
		    private static final String SERVICE_NAME = 
		    private static final String SOAP_OVER_HTTP_ROUTER = 
		    private static String ROUTER_ENDPOINT_URI = "cxf://" + 
		                                                   + WSDL_LOCATION + "&" 
		+ SERVICE_NAME + "&" + SOAP_OVER_HTTP_ROUTER + "&dataFormat=POJO";
		    protected void createService() throws Exception {
		        logger.warn("creatingService Camel");
		    protected void startService() throws Exception {
"startService Camel");
		    public void create() throws Exception {
		        logger.warn("creating Camel");
		    public void start() throws Exception {
		        logger.warn("starting Camel");
		    public void stop() {
		    public void startCamelService() throws Exception {
		        MyRouteBuilder builder = new MyRouteBuilder();
		    public class MyRouteBuilder extends RouteBuilder {
		        public void configure(){
		            from(ROUTER_ENDPOINT_URI).process(new Processor() {
		                public void process(Exchange exchange) {
		          "exchange!!!: "+exchange);

	The Camel Version that I'm using is the 1.2.0.

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

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message