Author |
Message
|
chris boehnke |
Posted: Sat Sep 20, 2014 5:42 am Post subject: Design suggestion |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
Hi guys,
We have message broker v7 at our client location.
We have an existing audit service that
maps the data from global env / input to generate the audit message.
I would like to design a reusable flow for this service which maps the global
Env to audit message. We have four diff flows which have different input.
I was thinking about message map. But we cannot map global
Env in message map.
Can you guys suggest me how to make this
Service reusable for all the flows.
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Sep 20, 2014 6:13 am Post subject: Re: Design suggestion |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
chris boehnke wrote: |
Hi guys,
We have message broker v7 at our client location.
We have an existing audit service that
maps the data from global env / input to generate the audit message.
I would like to design a reusable flow for this service which maps the global
Env to audit message. We have four diff flows which have different input.
I was thinking about message map. But we cannot map global
Env in message map.
Can you guys suggest me how to make this
Service reusable for all the flows.
Thanks |
Think about message events. You can determine what goes into the xml using XPATH....
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
chris boehnke |
Posted: Sat Sep 20, 2014 9:24 am Post subject: |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
Thanks fjb.
I think message events might not work for my scenario.
We already have our java service to pick messages from queue which we are being dropped as name value pair .
Also to get values from input message, we perform few logical steps to extract the values. I thought we can use message map functions for this, but global env cannot be mapped here.
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Sep 21, 2014 12:10 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
chris boehnke wrote: |
Thanks fjb.
I think message events might not work for my scenario.
We already have our java service to pick messages from queue which we are being dropped as name value pair .
Also to get values from input message, we perform few logical steps to extract the values. I thought we can use message map functions for this, but global env cannot be mapped here.
Thanks |
That's why you want the event message. Put the global environment into the event message and when you process it it will be in the message body... Now if you get those into a collection you can have both the message content and the global environment...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
chris boehnke |
Posted: Sun Sep 21, 2014 12:23 pm Post subject: |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
Thanks fjb.
If I use the event message, I have to build a separate wmb flow to subscribe to the event message and process the message right?
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Sep 21, 2014 6:35 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
chris boehnke wrote: |
Thanks fjb.
If I use the event message, I have to build a separate wmb flow to subscribe to the event message and process the message right?
Thanks |
Yes that's right. But then isn't that expected for an audit message?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
chris boehnke |
Posted: Mon Sep 22, 2014 6:43 pm Post subject: |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
Thanks fjb. I will do a POC on this.thanks |
|
Back to top |
|
 |
|