Hi,

I am having a Router issue. I have multiple messages coming in on a socket as a result of multiple messages being sent on the socket and I need to route them back to the service activator that needs to process them.

I was thinking of creating a header enhancer that would add the channel name as a header back onto the message when it lands.

My message header saving class would need to have a map so I can map the responses back to the channels that need them.

So I would create a map entry when the message was sent of "id" (Spring Message id header value) and the name of the channel that is to receive the response.

Then I could add the channel name header back onto the message and use a Router to route the message back to the needed channel.

Am I going about this correctly or is there another approach?