-
Dec 7th, 2012, 02:04 PM
#1
Router example
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?
-
Dec 7th, 2012, 03:40 PM
#2
Hi Frank,
I think instead of using Router in order to resolve your issue, you can use a new Socket for each message. As an example, https://github.com/SpringSource/spri...rver-multiplex
Hope that helps.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules