[
https://issues.apache.org/jira/browse/CAMEL-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161670#comment-13161670
]
Daniel Kulp commented on CAMEL-4731:
------------------------------------
I'll see if it's easy enough to support both. The attached patch causes a
double setting of the bus property when used with the latest CXF code that has
the fix in which has a different set of potential issues. I think we can just
override the parseAttributes call and check if CXF has handled it (newer CXF
versions will) and, if not, then handle it in Camel (older versions of CXF).
I'll play around with it and see what we can do.
> simpler wiring of Camel CXF endpoints to named CXF buses in spring
> ------------------------------------------------------------------
>
> Key: CAMEL-4731
> URL: https://issues.apache.org/jira/browse/CAMEL-4731
> Project: Camel
> Issue Type: Improvement
> Components: camel-cxf
> Affects Versions: 2.8.3
> Reporter: Aki Yoshida
> Assignee: Daniel Kulp
> Priority: Minor
> Fix For: 2.8.4, 2.9.0
>
> Attachments: patch.txt
>
>
> I think the current wiring configuration (used in those camel-cxf tests) for
> wiring CXF endpoints to specific cxf bus instances using spring is cumbersome
> and not appealing. So, I would like to suggest a patch for this problem.
> To start, here is how the the current configuration convention looks like:
> <beans ...>
> <bean id="cxf1" class="org.apache.cxf.bus.extension.ExtensionManagerBus"/>
> <bean id="cxf2" class="org.apache.cxf.bus.extension.ExtensionManagerBus"/>
> <cxfcore:bus bus="cxf1">
> ...
> </cxfcore:bus>
> <cxfcore:bus bus="cxf2">
> ....
> </cxfcore:bus>
> <cxf:cxfEndpoint id="routerEndpoint"
> serviceClass="..."
> ...
> bus="cxf1"/>
> <cxf:cxfEndpoint id="serviceEndpoint"
> serviceClass="..."
> ...
> bus="cxf2"/>
> </beans>
> I would like to get rid of the indirect wiring of the CXF endpoints using
> ExtensionManagerBus beans. The attached patch for camel/trunk should directly
> wire the endpoints to the named buses. I would appreciate if you can look at
> it.
> Thank you.
> regards, aki
--
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