Here is some unit tests[1][2][3] those you can take a look. You just need to make sure the CamelTransportFactory which you get from CXF Bus is injected with right camel context.
[1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf-transport/src/test/java/org/apache/camel/component/cxf/transport/JaxWSCamelConduitTest.java [2]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf-transport/src/test/java/org/apache/camel/component/cxf/transport/JaxWSCamelDestinationTest.java [3]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf-transport/src/test/java/org/apache/camel/component/cxf/transport/JaxWSCamelTestSupport.java -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Sunday, January 6, 2013 at 9:10 AM, Willem jiang wrote: > Hi Lars, > > Current you have to use Spring to configure the camel transport for the CXF > client, if you want to do it with pure Java you have to manage the CXF Bus > yourself. > I will try to write an example to show you how to do it with pure Java, when > I get some time later today. > > > -- > Willem Jiang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://www.fusesource.com | http://www.redhat.com > Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) > (English) > http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > > > > > On Saturday, January 5, 2013 at 11:50 PM, helander wrote: > > > Thanks, > > > > do you know where I can find an example how to do this that are in pure Java > > (no Spring) ? > > > > Thanks Lars > > > > > > > > -- > > View this message in context: > > http://camel.465427.n5.nabble.com/Producing-consuming-SOAP-messages-to-from-POJOs-using-camel-cxf-tp5724949p5724967.html > > Sent from the Camel - Users mailing list archive at Nabble.com > > (http://Nabble.com). >