Author |
Message
|
547c547 |
Posted: Wed Jul 27, 2016 5:10 am Post subject: IIB 10 BTM Global Txn ID |
|
|
 Acolyte
Joined: 16 Jun 2014 Posts: 51
|
Dear All,
I have a problem to capture all the event related to one transaction. Details as follows.
1 Application
4 message flows.
1 Java program
Since I am migrating I have my limitations in code changes.
This is Bulking, As the application receives messages independently with a unique no. [I am planning to keep this no. as BTM global txn ID] This unique no. is being carried for first two message flows. these flows inserts the data into DB
After which JAVA comes into picture.
JAVA program polls the DB and fetch the datase and creates a unique value for first 10 transactions .
3rd message flow will get the unique values but multiple of them in line.
???
I have also failed keeping the unique value as MSG ID (taking help of MQRFH2)
Kindly, suggest.. Any response greatly appreciated..
 |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 27, 2016 5:15 am Post subject: Re: IIB 10 BTM Global Txn ID |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
547c547 wrote: |
I have also failed keeping the unique value as MSG ID (taking help of MQRFH2) |
Failed how? What went wrong?
Where are you planning to store / aggregate these events?
How did you select this "unique number" as the global transaction id? What other data points are available as candidates? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
547c547 |
Posted: Wed Jul 27, 2016 5:32 am Post subject: |
|
|
 Acolyte
Joined: 16 Jun 2014 Posts: 51
|
Thanks for reply.
This is not aggregation.. they are bulking in Java..
Can you plz suggest some unique value.. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 27, 2016 6:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
547c547 wrote: |
This is not aggregation.. they are bulking in Java.. |
No, I get that you're not using IIB Aggregation nodes; I meant where are you collecting the events (assuming you can collect them all) and displaying them?
You also need to elaborate on what went wrong with your original design that prompted you to post here.
547c547 wrote: |
Can you plz suggest some unique value.. |
No. That's why I asked for other candidates. Only you can see your data. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
547c547 |
Posted: Wed Jul 27, 2016 7:09 am Post subject: |
|
|
 Acolyte
Joined: 16 Jun 2014 Posts: 51
|
I am using monitoring profile to populate the events. . i am populating global txn id xpath ex0ression $environment/refno. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 27, 2016 7:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
547c547 wrote: |
I am using monitoring profile to populate the events. . i am populating global txn id xpath ex0ression $environment/refno. |
Ok, so there's no way I can know how you've populated the Environment tree but let's assume it's a reference number from the body of the payload somewhere, and it's correctly populated in the Environment tree every time an event is emitted from IIB. Big assumptions but let's move forward.
Again I ask: what's consuming these IIB event messages?
Again I ask: what was the problem with your original solution? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
547c547 |
Posted: Wed Jul 27, 2016 8:49 am Post subject: |
|
|
 Acolyte
Joined: 16 Jun 2014 Posts: 51
|
Every time I receive the message .. i parse and validate with message model . So i am storing these values in environemt .
Sorry.. i am not getting what u r asking for.. let me tell entire process i did
I create a monitoring profile with events .
And configurable services (data capture store , data capture source, monitoring profiles.)
I corelate with xml and broker. Using mqsichangeproperties .
Patch the db source to broker
Assign flags in browser
Enable flow monitoring
And see logs.. i am able see logs and understand... But in bulking concept. If 2 msg flows execute 10 times 3rd msg will execute only once |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Jul 27, 2016 10:06 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Do you mean 'Blocking' and not 'Bulking'?
What is the connection between the message flows?
Are they the same flow but deployed into 4 different EG's
If not what is the relationship between them?
How do you identify a Blocking/Bulking event?
So far we don't really have a lot to go on. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
547c547 |
Posted: Wed Jul 27, 2016 11:58 pm Post subject: |
|
|
 Acolyte
Joined: 16 Jun 2014 Posts: 51
|
This is not Blocking.. Purly Bulking.
I receive 10 messages for 1 st 2 message flows (flows run 10 times and insert the data into DB)
JAVA program picks the data from database based on a coloumn (which will be inserted as NULL by 1st 2 message flows) and generate a unique no for all 10 messages
3rd message flow will execute only once and pic those ten records with same unique value in that coloumn.
1msgfow ---> 2nd Flow .
JAVA (polls)
3rd flow ends. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jul 28, 2016 4:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
I still don't understand what your problem is. So you're grouping / bulking inbound messages in a database into groups / bulks of 10. You then read these groups out with Java to process them. You have event monitoring switched on.
So?
Perhaps if you answered my question about what's consuming these event messages, and also talked about the results you're getting and how they differ from the results you want? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|