|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message exit on OS/400 |
« View previous topic :: View next topic » |
Author |
Message
|
petos |
Posted: Tue Apr 12, 2005 2:55 am Post subject: Message exit on OS/400 |
|
|
Newbie
Joined: 12 Apr 2005 Posts: 5 Location: Bratislava, Slovakia
|
Parameters DataLen and AgentBuffLen are in my channel message exit program always 0.
Other parameters (ChannelParms, ChannelDef, pAgentBuff) are filled correctly.
I check it after this code immediately:
ChannelParms = (PMQCXP) argv[1];
ChannelDef = (PMQCD) argv[2];
DataLen = (MQLONG) *argv[3];
AgentBuffLen = (MQLONG) *argv[4];
pAgentBuff = (PMQBYTE) argv[5];
ExitBuffLen = (MQLONG) *argv[6];
ExitBuffAddr = (MQPTR) *argv[7];
Where can be the problem ?
Thank You
petos |
|
Back to top |
|
 |
cheanfeiy |
Posted: Wed Apr 13, 2005 5:23 pm Post subject: RE:Message exit on OS/400 |
|
|
Apprentice
Joined: 21 Jun 2003 Posts: 26
|
The DataLen and AgentBuffLen are very much dependent on the ExitReason. Try to capture the DataLen and AgentBufLen value during ExitReason = MQXR_MSG, you should expect both parameter assigned with certain values. |
|
Back to top |
|
 |
petos |
Posted: Thu Apr 14, 2005 5:35 am Post subject: |
|
|
Newbie
Joined: 12 Apr 2005 Posts: 5 Location: Bratislava, Slovakia
|
Yes, of course.
I checked DataLen and AgentBuffer during ChannelParms->ExitReason == MQXR_INIT, but value equals 0.
 |
|
Back to top |
|
 |
petos |
Posted: Thu Apr 14, 2005 5:54 am Post subject: |
|
|
Newbie
Joined: 12 Apr 2005 Posts: 5 Location: Bratislava, Slovakia
|
In AgentBuff are correct values, but I cannot find how long.
ChannelParms and ChannelDef are correct too. |
|
Back to top |
|
 |
cheanfeiy |
Posted: Sun Apr 17, 2005 11:52 pm Post subject: |
|
|
Apprentice
Joined: 21 Jun 2003 Posts: 26
|
Normally during ExitReason = MQXR_INIT, MQ let you prepare memories allocation for your exit program. There shouldn't be any agent buffer manupulation because my message data was not appear at INIT stage. However, when the ExitReason = MQXR_MSG, you can start manupulate the AgentBuf and DataLen will tell you the maximum length of the AgentBuf. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|