Hi,
I am trying to set a property on the camel exchange. Using Spring XML the
only way i found to set that was using <camel:setProperty>. The problem is
that the value can only be of specific types and i could not find a type
which would help me set a Map as a value against a key.
If i look at DefaultExchange then the properties are stored as a Map<String,
Object> and it provides a method to set a property setProperty(String key,
Object value)
Is that a limitation while using Spring XML for creating camel routes?
What i have done is i have defined a bean:
<bean id="xiHeaderMap"
class="org.springframework.beans.factory.config.MapFactoryBean">
<property name="sourceMap">
<map>
<entry key="A" value=""/>
<entry key="B" value="serviceB"/>
<entry key="C" value=""/>
<entry key="D" value="serviceH"/>
<entry key="E"
value="{http://h-und-b.de/}CXFGreetMe"/>
</map>
</property>
</bean>
Now i wanted to set this Map against a Key value on the Camel exchange
Property Map. How can i do that using Spring XML?
Best Regards,
Madhav
--
View this message in context:
http://camel.465427.n5.nabble.com/Set-exchange-property-to-a-Map-tp3349171p3349171.html
Sent from the Camel - Users mailing list archive at Nabble.com.