Posted: Wed Jun 18, 2008 5:38 pm Post subject: WESB Import with MQ: setting qname dynamially at runtime?
Newbie
Joined: 10 Apr 2008 Posts: 6
Hi all,
I have a Java component that accepts various messages and depending on message type, will route message to one of 4 queues. I currently have 4 imports attached to the Java component.
My question is, can I replace the 4 imports with a single import instead and dynamically set the destination queue name at runtime for the MQ binding? I can't seem to find anything in the documentation that describes how to do it.
Yes you can do it using callout node in mediation flow. You need to specify that the callout node is dynamic and thenyou can choose the qname from message header or from some where else.
For JMS binding the syntax is 'jms:/queue?destination=<destName>&connectionFactory=<factory>&targetservice=<service>' _________________ Thanks and Warm Regards
Sourav
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum