Author |
Message
|
biruk |
Posted: Fri Feb 05, 2016 4:05 am Post subject: Message filtering and routing |
|
|
Novice
Joined: 31 Mar 2010 Posts: 14
|
Hi all,
I have a problem and I need your help to identify the best solution.
We have an third-party application (App1) which put MQ messages to one of our queues (App2_Input_Queue) and get messages from another.
Another internal application read these messages and process them (App2).
Now this internal application will be replaced by two different solutions (App3 and App4), which need to read messages from the input queue (App2_Input_Queue).
Messages received into queue are XML and have different headers.
I need a solution to distribute these message to other queues, add a filter or routing policy, based on the data from header, in order to receive them into two news queues (App3_Input_Queue and App4_Input_Queue).
I found something regarding publish\subscribe, but our MQ is not configured so.
Can this be done using an MQ configuration or we need another application to do that?
Unfortunate, there is no chance to modify or configure App1 to put the messages into two separate queues .
I try to find something here, on other post, even if that search is not working, but found nothing.
Regards,
Biruk. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Feb 05, 2016 5:21 am Post subject: Re: Message filtering and routing |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
biruk wrote: |
Can this be done using an MQ configuration or we need another application to do that? |
You need an application, or IIB if that's available. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Feb 05, 2016 5:25 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Anything that requires making decisions or otherwise processing any part of the message data (including the MQMD and etc) must be handled by an application.
MQ can only route based on either topic or the queue name/queue manager name. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
RogerLacroix |
Posted: Fri Feb 05, 2016 9:53 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
A long time ago, I had the same problem - XML payload and the messages needed to be distributed. So, I created the Message Router open source project.
Follow the instructions for setting the XML search keywords (start & end) and relate those to queue names. Finally, set it up as an MQ Service and it will route the messages to the appropriate queues.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
biruk |
Posted: Tue Feb 09, 2016 3:50 am Post subject: |
|
|
Novice
Joined: 31 Mar 2010 Posts: 14
|
Hi,
Isn't the any tool/exe from IBM already build, that can do the same on queue level ?
Regards,
Biruk. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 09, 2016 5:10 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
biruk wrote: |
Isn't the any tool/exe from IBM already build, that can do the same on queue level ? |
IIB.
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Feb 09, 2016 5:56 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What does it mean "at the queue level" ?
If the routing of messages is determined by the content of the message, again, you need something that can read and process the messages.
IIB is excellent for this.
If the routing of the message is determined by something that's not actually in the message, you can use pub/sub. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|