java - Spring integration dynamic message selector -


i have application 2 queues, first queue has control messages , other has data messages. based on jmscorrelationid of message control queue need read messages jmscorrelationid data queue.

i able selectively read messages data queue using selector defined below.

<int-jms:message-driven-channel-adapter id="messagedriveninboundadapter"     channel="inboundchannel" destination-name="inboundmq"     selector="jmscorrelationid = 'jmscorelis1234'"     connection-factory="connectionfactory" extract-payload="false"/> 

i need dynamically update value jmscorrelationid selector based on messages received on different channel.

is possible that? there different way implement solution in spring integration?

it's not possible message-driven adapter; selector baked message listener container constructed during initialization.

you can change message selector of polled <inbound-channel-adapter/>; change take effect on next poll.

you can handle jmsdestinationpollingsource auto wiring, or via bean name (adapterid.source).


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -