Announcement Announcement Module
Collapse
No announcement yet.
spel expression inject in property value in a spring bean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spel expression inject in property value in a spring bean

    I've tried out the spel expression headers.get('mCodifValue1') it work on with my spring integration router component .
    (See code 2)

    Meanwhile I can't retrieve headers.get['mCodifValue3'] value from the spel expression (code 1 )
    can someone help me to figure out how to retrieve the value of "headers" object and inject it in compoRoutingQueue value property .



    Code 1
    <bean id="compoRoutingQueue" parent="jmsTemplateQueueStpgs">
    <property name="defaultDestinationName" value="#{headers.get['mCodifValue3']}" />
    </bean>



    Code 2 :
    <int:router id="fmkRouterProcessor" input-channel="outputCodificationToRoot"
    expression="headers.get('mCodifValue1')">
    <int:mapping value="CANAL1" channel="InputMQSendingProcessor" />
    <int:mapping value="CANAL2" channel="InputFileSendingProcessor" />
    </int:router>

  • #2
    anyone can help me or give me a tip for my spel problem ?

    Comment

    Working...
    X