Author |
Message
|
bihaniun |
Posted: Fri Feb 15, 2013 1:16 pm Post subject: Message group ID on Output mesages |
|
|
Newbie
Joined: 15 Feb 2013 Posts: 3
|
I have a requirement, where, multiple output messages are created. and application should generate all of them successfully or none are propagated to output if any error occurs.
the current code looks like below:
While counter<=total_msgs DO
CALL SetHeaderInfo();
CALL buildOutputMsg();
PROPAGATE;
SET counter = counter +1;
END WHILE;
The SetHeaderInfo() copies input headers to output, on top of that sets corrID to constant.
Segmentation Allowed is enabled on output terminal, so that GroupID is automatically generated.
MQ v7 is used.
with above settings, if error is occurred in process, flow does not roll back msgs from output queue
I tried adding following code to set Message Group ID
SET OutputRoot.MQMD.MsgSeqNumber = counter+1;
SET OutputRoot.MQMD.MsgFlags = MQMF_MSG_IN_GROUP;
IF (counter = total_msgs) THEN
SET OutputRoot.MQMD.MsgFlags = MQMF_LAST_MSG_IN_GROUP;
END IF;
this does not help as well.
any suggestion to resolve this issue? |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Feb 15, 2013 1:19 pm Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
What version of WMB? Are you using Transaction mode 'Yes'; then commit after all messages have been propagated? Have you attended the required training? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
bihaniun |
Posted: Tue Feb 19, 2013 6:22 am Post subject: |
|
|
Newbie
Joined: 15 Feb 2013 Posts: 3
|
its WMB v7.
I tried using Transaction Mode=Yes and Commit By message Group enabled.
still it commits after each message.
Also, Output Destination list has 'Segmentation Allowed' enabled.
not sure if that affects how group ID is generated. I can see that group ID is different for each output message.
414D5120454D4D514D47525F49424D2EBB091D510E720120
414D5120454D4D514D47525F49424D2EBB091D510F720120 |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Feb 19, 2013 6:58 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
WMB version numbers have four digits, like this: toolkit 7.0.0.3 runtime 7.0.0.5. What is the effective level of your runtime. You still did not answer the q about training.
If the product is misbehaving as you have described, then it surely is a defect. Open a PMR to get a fix. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
adubya |
Posted: Tue Feb 19, 2013 8:06 am Post subject: |
|
|
Partisan
Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK
|
What transaction mode setting do you have on the MQ output node ? |
|
Back to top |
|
 |
bihaniun |
Posted: Wed Feb 20, 2013 5:33 am Post subject: |
|
|
Newbie
Joined: 15 Feb 2013 Posts: 3
|
WMB Version:
toolkit Version: 7.0.0.4
runtime:7.0.0.4
No to training
figured out that, we had error handling in place, and that was eating up exception thrown.
After adding the throw at the end of error handling, it rolled back messages. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Feb 20, 2013 5:52 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
lancelotlinc wrote: |
You still did not answer the q about training.
|
since when did the Broker training cover WMQ App Dev? IMHO, the problem is basically just that.
covering in detail what all the properties of every node does is a laudable aim but just not possible in the time allowed for the course.
Oh, and IBM have yet to schedule the App Dev pt 2 course in Blighty. _________________ 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 |
|
 |
mqjeff |
Posted: Wed Feb 20, 2013 6:01 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
smdavies99 wrote: |
Oh, and IBM have yet to schedule the App Dev pt 2 course in Blighty. |
Clearly your bosses need to pay for you to take this valuable training in beautiful downtown Pittsburgh, PA, USA then.
Why, you'll look around and think "It's almost as lovely as Manchester". |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Feb 20, 2013 6:03 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
smdavies99 wrote: |
lancelotlinc wrote: |
You still did not answer the q about training.
|
since when did the Broker training cover WMQ App Dev? IMHO, the problem is basically just that.
covering in detail what all the properties of every node does is a laudable aim but just not possible in the time allowed for the course.
Oh, and IBM have yet to schedule the App Dev pt 2 course in Blighty. |
Much of the WMB training covers messaging patterns and error handling, of which a better understanding of error handling by the OP would have saved him/her at least five days (Feb15-20) of work time figuring out the problem. Use of trace nodes in the error handler would have also pointed out the fact that the error handler was doing what it was designed to do in the first place.
The required training class is not what you allude to, in that the class addresses patterns and functionality in a comprehensive way rather than what you suggest is merely a review of a lexicon of node properties. This is the 21st century, not the 1960s. Training is much more comprehensive in this decade. If the IBM class you attend only covers lexical topics, I would ask for my money back or to retake the class with a different instructor. We don't need a class with instructor to learn how to read the InfoCentre. Some of us know how to find information in the InfoCentre already and we're pretty good at reading with comprehension. What we need from the class is to learn tips, tricks, and practices.
The OP's employer is going to pay for training one way or the other: either directly to attend the class or indirectly through silly wasted time like this problem. Better to actually go rather than waste a whole lot of productive time, not only developer-OP time waste but developer-team mates, testers, delivery dates, etc. The retail price of the School of Hard-Knocks seems cheaper to accountants and managers, but is it really? Five days wasted time x one developer could equal US$2,500 which is half of the cost of the training. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 20, 2013 9:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
smdavies99 wrote: |
Oh, and IBM have yet to schedule the App Dev pt 2 course in Blighty. |
Clearly your bosses need to pay for you to take this valuable training in beautiful downtown Pittsburgh, PA, USA then.
Why, you'll look around and think "It's almost as lovely as Manchester". |
I've seen beautiful downtown Pittsburgh, PA. It's much more lovely than Manchester, but most places are.
Apart from those freaky statues. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
joebuckeye |
Posted: Thu Feb 21, 2013 10:17 am Post subject: |
|
|
 Partisan
Joined: 24 Aug 2007 Posts: 365 Location: Columbus, OH
|
The WMB training class's usefulness is totally driven by the instructor of the class.
The first one I took was with MQ Software in Minneapolis and the instructor was great and started off the class by saying that we could all read the materials and that he would use the slides to talk about the topic on the slide without reading said slide.
A co-worker of mine took the same class but in Chicago two weeks later and he said the instructor just read the slides and that he generally felt it was a waste of time.
Since that time we bring in an instructor to teach the class locally when we get enough new broker developers to justify the cost. The local instructor, who has been the same person each time, is very underwhelming to me and closer to my co-workers experience than mine was.
He is also the guy we get locally when asking for WTX training.
I will say the Datapower instructor we have brought in has been fantastic however (Robin the magician). |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 21, 2013 10:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
joebuckeye wrote: |
Since that time we bring in an instructor to teach the class locally when we get enough new broker developers to justify the cost. The local instructor, who has been the same person each time, is very underwhelming to me and closer to my co-workers experience than mine was.
He is also the guy we get locally when asking for WTX training. |
Sounds like you have something to discuss with your IBM Education sales representative. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Feb 25, 2013 5:33 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
joebuckeye wrote: |
The WMB training class's usefulness is totally driven by the instructor of the class.
The first one I took was with MQ Software in Minneapolis and the instructor was great and started off the class by saying that we could all read the materials and that he would use the slides to talk about the topic on the slide without reading said slide.
A co-worker of mine took the same class but in Chicago two weeks later and he said the instructor just read the slides and that he generally felt it was a waste of time.
Since that time we bring in an instructor to teach the class locally when we get enough new broker developers to justify the cost. The local instructor, who has been the same person each time, is very underwhelming to me and closer to my co-workers experience than mine was.
He is also the guy we get locally when asking for WTX training.
I will say the Datapower instructor we have brought in has been fantastic however (Robin the magician). |
Only you can prevent forest fires. You are the customer. If you paid for value and did not receive that value, its up to you to get reimbursed or to get a new class.
If you booked the class outside of the IBM registration process, then I'm not sure what to tell you. You should always book IBM classes through IBM.
An IBM WMB instruction class is a conversation. If your friend was passive and not active in the class, then he can point one finger at the instructor but there are four other fingers pointing back at him/her. Part of the responsibility for deriving value is the students. There is also a feedback sheet to be filled out at the end of the class. It is the student's responsibility to accurately call out deficiencies in the class.
mqjeff wrote: |
joebuckeye wrote: |
Since that time we bring in an instructor to teach the class locally when we get enough new broker developers to justify the cost. The local instructor, who has been the same person each time, is very underwhelming to me and closer to my co-workers experience than mine was.
He is also the guy we get locally when asking for WTX training. |
Sounds like you have something to discuss with your IBM Education sales representative. |
You don't have to accept any instructor. The cost for an instructor is the same no matter where they come from. We found the Raleigh, NC instructors to be good as well as the Miami, FL instructors to be good. Air fare is pretty much the same plus or minus a hundred dollars. You are the customer, you must clearly indicate what your criteria is for instruction. Next time, ask for one of those guys-gals. Miami is a great destination for training in January. The weather is splendid and you can add to your tabackee collection with genuine Cuban cigars while in Miami. 42nd St. Oyster Bar & Seafood Grill in downtown Raleigh is the balm. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|