ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Message exit on OS/400

Post new topic  Reply to topic
 Message exit on OS/400 « View previous topic :: View next topic » 
Author Message
petos
PostPosted: Tue Apr 12, 2005 2:55 am    Post subject: Message exit on OS/400 Reply with quote

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
View user's profile Send private message
cheanfeiy
PostPosted: Wed Apr 13, 2005 5:23 pm    Post subject: RE:Message exit on OS/400 Reply with quote

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
View user's profile Send private message
petos
PostPosted: Thu Apr 14, 2005 5:35 am    Post subject: Reply with quote

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
View user's profile Send private message
petos
PostPosted: Thu Apr 14, 2005 5:54 am    Post subject: Reply with quote

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
View user's profile Send private message
cheanfeiy
PostPosted: Sun Apr 17, 2005 11:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Message exit on OS/400
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.