camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lakshmi.prashant" <lakshmi.prash...@gmail.com>
Subject How to use dynamic properties / bean references with http conduit used with camel CXF?
Date Wed, 17 Dec 2014 16:15:04 GMT
Hi,

 Is there a way to specify dynamic values (using a bean reference) for  the
httpConduit properties of the CXF endpoint (camel CXF)? We need to look up
the values of proxyHost and proxyPort  in a bean at runtime and then
dynamically set it as the proxyHost, port for the Http connection.

I had tried the below:

<bean id="retrieveProxyDetails" class="com.it.test.RetrieveProxyDetails" />
<bean id="proxyHost" factory-ref="retrieveProxyDetails" 
factory-method="getProxyHost">
<bean id="proxyPort" factory-ref="retrieveProxyDetails" 
factory-method="getProxyPort">


<http-conf:conduit name="{http://xi.com/mine}MessageFlow_3.http-conduit">
   <http-conf:authSupplier bean="Participant_4__authSupplier"/>
   <http-conf:client ProxyServer="#proxyHost” ProxyServerPort="#proxyPort"
ReceiveTimeout="4000" ConnectionTimeout="4000" />
   <http-conf:tlsClientParameters>
      <sec:trustManagers ref="trustManager"/>
   </http-conf:tlsClientParameters>
</http-conf:conduit>

This gives the error: '#proxyPort' is not a valid value of union type
'ParameterizedInt'. 

Is there a way of doing this?

Or should we retrieve  these values using config admin service/ specify in
the camel blueprint the config admin properties?


Thanks,
Lakshmi




--
View this message in context: http://camel.465427.n5.nabble.com/How-to-use-dynamic-properties-bean-references-with-http-conduit-used-with-camel-CXF-tp5760833.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message