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 » Help Needed : problem in Configuring Two Message exits

Post new topic  Reply to topic
 Help Needed : problem in Configuring Two Message exits « View previous topic :: View next topic » 
Author Message
bhavya123
PostPosted: Mon Feb 06, 2006 2:40 am    Post subject: Help Needed : problem in Configuring Two Message exits Reply with quote

Novice

Joined: 25 Dec 2005
Posts: 16
Location: Banglore

Hi All,

We have configured two message exits on a receiver channel.

Ex: MSGEXIT(msgexit(mmsg),msgexit1(MsgExit)).

But only first message exit is getting invoked(.i.e mmsg)
Even if we reverse the order of the exits, only the first exit is getting invoked (i.e MsgExit).

We are using MQV5.3+CSD11 on Solaris 8.

Can some one help me to figure out what could be the possible problem?

Thanks in advance for your help.
Regards
Bhavya
Back to top
View user's profile Send private message
wschutz
PostPosted: Mon Feb 06, 2006 4:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

What does the exit set the ExitResponse2 field as? it looks like it wants to be:
MQXR2_CONTINUE_CHAIN.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
bhavya123
PostPosted: Tue Feb 07, 2006 2:01 am    Post subject: Reply with quote

Novice

Joined: 25 Dec 2005
Posts: 16
Location: Banglore

Hi friends,

Thanks for the prompt reply.

We have tried setting both MQXR2_CONTINUE_CHAIN, MQXR2_DEFAULT_CONTINUATION in the ExitResponse2. And we are sure that both the message exits are returning MQXCC_OK in ExitResponse but still the problem exists.


Further we wrote two message exit programs to log the value of the "MsgExitsDefined" field of pChannelDefinition in to a file. For our surprise the value logged in the log file was '1'. And there were no errors reported in queue manager's log file.

Below is the message exit code:
-----------------------------------

extern void MQENTRY MsgExit(
PMQCXP pChannelExitParms,
PMQCD pChannelDefinition,
PMQLONG pDataLength,
PMQLONG pAgentBufferLength,
PMQBYTE pAgentBuffer,
PMQLONG pExitBufferLength,
PMQPTR pExitBufferAddr)

{
PMQXQH pXQH;
PMQCXP pCXP;
PMQCD pCD;
FILE *fPtr = NULL;
pXQH = (PMQXQH)pAgentBuffer;
pCXP = pChannelExitParms;
pCD = pChannelDefinition;
fPtr = fopen( "/tmp/myexit1.log", "w");
fprintf(fPtr,"%ld",pChannelDefinition->MsgExitsDefined);
fclose(fPtr);
pCXP->ExitResponse = MQXCC_OK;
return;
}

/* In the same code changed the log file name to "/tmp/myexit2.log for another message exit program */
---------------------------------------------------------------------------

When we built and configured the same exit programs on windows. Every thing worked fine. Both the exits were invoked and the value logged in the log files was 2.

Then we configured one more exit on solaris-8 machine; this time also the value logged in the log file is 1.

Can some one help me to figure out what might have gone wrong?

Regards
Bhavya
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Feb 07, 2006 2:53 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

At this point, I would suggest opening a problem report with IBM. If the same exits and definitions work on windows but not solaris, then it "might" be a problem with MQ. (I assume you've triple checked your channel definition on the solaris machine )
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Help Needed : problem in Configuring Two Message exits
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.