To have the possibility to forward config admin updates to the routes
would be great.
Christian
Am 20.01.2011 13:46, schrieb Willem Jiang:
On 1/20/11 8:22 PM, Christian Schneider wrote:
I guess you can change the endpoints like Willem advised. Could you
explain a little more what your use case is? So when do you want to
change the address and what triggers this?
The reason I ask is that like always in Camel and also OSGi there are
several possible solutions and the right one depends a lot on your use
case.
We can let CXF endpoint producer support to set some of CXF client
property(such as address, request timeout, etc) out of box by
introducing some kind of notification mechanism into Camel. And it
could be easy to implement an OSGi one by leveraging the Configure
Admin :)
Christian
Am 20.01.2011 12:23, schrieb Marcos Díez Fernández:
Hi,
I have set up a camel CXF client with Spring in
ServiceMix-4.3.0-fuse-03-00 based on Karaf OSGi container. Due to my
project requirements, and to take advantage of OSGI capabilities, I'd
like to change the CXF endpoint's address dynamically. Until now I can
extract the endpoint from the camel context but I'm not able to modify
its address:
CxfEndpoint cxfEndpoint = (CxfEndpoint)
camelContext.getEndpoint("cxfEsiosMPClient");
I've seen there is a setAddress method for CxfEndpoint in Camel 2.5.0,
but currently Servicemix just contains Camel 2.4.0, which doesn't have
this setter.
Does this setter solves this issue, and therefore I should wait for a
new version of ServiceMix? Or is there any workaround for this?
Any help would be appreciate. Thanks in advance.
BR,
Marcos
--
----
http://www.liquid-reality.de