[
https://issues.apache.org/jira/browse/CAMEL-5064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225081#comment-13225081
]
Jean-Baptiste Onofré commented on CAMEL-5064:
---------------------------------------------
Hi Willem,
I create a RouteDefinition and put directly in the from:
RouteDefintion route = new RouteDefintion();
route.from(cxfEndpoint).process(new MyProcessor()).to("other...");
And I register the route definition in the CamelContext.
> Route using programmatically defined CxfEndpoint doesn't appear as OSGi
> service
> -------------------------------------------------------------------------------
>
> Key: CAMEL-5064
> URL: https://issues.apache.org/jira/browse/CAMEL-5064
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.8.2
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.9.2
>
>
> If we create a route with a CXF endpoint programmatically:
> CxfEndpoint endpoint = new CxfEndpoint();
> endpoint.setCamelContext(camelContext);
> endpoint.setAddress(myAddress);
> endpoint.setWsdlUrl(wsdl);
> and register the route using
> camelContext.add(routeDefinition);
> the route is started and appears in the MBeans, but, in Karaf, routes:list
> doesn't display the route (as OSGi service is not there).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira