|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Help Needed : problem in Configuring Two Message exits |
« View previous topic :: View next topic » |
Author |
Message
|
bhavya123 |
Posted: Mon Feb 06, 2006 2:40 am Post subject: Help Needed : problem in Configuring Two Message exits |
|
|
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 |
|
 |
wschutz |
Posted: Mon Feb 06, 2006 4:05 am Post subject: |
|
|
 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 |
|
 |
bhavya123 |
Posted: Tue Feb 07, 2006 2:01 am Post subject: |
|
|
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 |
|
 |
wschutz |
Posted: Tue Feb 07, 2006 2:53 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|