The GreetServiceImpl will not be called as in the camel-cxf component, the invoker which could be used to invoke the method of implementer is replaced to send the message to camel route. That is why the greetProcessor is called. In this way we can bridge the CXF service with the camel route.
-- 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 Tuesday, December 11, 2012 at 9:09 PM, jay.rajani wrote: > Hi, > > I have created a simple greeting service using Fuse ESB IDE and Camel xml. > > Following is the bean and route definitions. > > <bean name="greetProcessor" > class="org.mii.mts.business.service.GreetProcessor" /> > <cxf:cxfEndpoint id="serviceEndpoint" address="http://localhost:9000/" > serviceName="GreetService" > serviceClass="org.mii.mts.cxf.service.GreetService"> > </cxf:cxfEndpoint> > > <camelContext trace="false" > xmlns="http://camel.apache.org/schema/spring"> > > <route> > <from uri="cxf:bean:serviceEndpoint"/> > <bean method="callMe" ref="greetProcessor"/> > </route> > > When I run the application, it shows me WSDL (as it is code first) > correctly. I am also able to invoke various methods in Service but the call > goes to greetProcessor directly rather than going to GreetServiceImpl first. > > I also tried putting my implementor class in serviceClass but that could not > resolve the issue. > > I am new to Camel and ESB. Dont know if I am missing some basic steps. > > Will you please guide me how to get control in Service Implementer class. > > Regards, > Jay Rajani > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/CXF-Service-Implementer-could-not-be-invoked-tp5723907.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).