-
May 23rd, 2010, 06:58 PM
#1
Same Message needs to go to two different Queues.
I have a message that needs to gets converted into BytesMessage before being sent to two channels.
Currently, I have a message that gets put into two different channels through a Router and gets routed to two different message-channel-adapters which have messageConverters for them.
What I want to do is to instead of converting twice, can I convert once and send it to message-driven-channel-adapters without having messageConverters? If I can do that, what model do you recommend? A service-activator or anything else?
-
May 24th, 2010, 11:12 AM
#2
Without knowing much about your process beyond your description below I'd suggest a shape like Transformer > Splitter > Router
- Transform payload to byte array
- Split into 2 messages, enrich header with appropriate value for routing
- Route to appropriate channel adapter on header value
I believe the default behavior of the channel adapter will extract the byte array payload for you and construct a JMS BytesMessage.
-
May 25th, 2010, 08:31 AM
#3
I think if you use receipientListRouter you don't need to split the message, just define a list of channels to route the message to
-
May 25th, 2010, 08:42 AM
#4
Ah, good suggestion rhart -- I was unfamiliar with RecipientListRouter.
Tags for this Thread
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