Hi,

I deployed the example camel-example-cxf-tomcat on Glassfish and eveything 
works as expected (i.e. if I request the WSDL, the WSDL is shown). But I want 
to use camel-cdi, so I remove the definition from the XML file and I add the 
Camel CDI dependency. Now when I request the WSDL, the message "No service 
found" is displayed.

I see the route is created. I guess it has to do with the fact that the Camel 
CDI is using a DefaultCamelContext. If the route is added using the XML, a 
SpringCamelContext is used.

I tried this with version 2.24.0, 3.0.1 and the latest snapshots.

Is it possible to define CXF endpoints using CDI beans?
Is it possible to make Camel-CDI and Camel-Spring use the same CamelContext?
Is it possible to retrieve the CamelContext from Camel-Spring, so I can use 
this in my CDI beans?

Thanks,
JPH

Reply via email to