|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Auto Defn Exits |
« View previous topic :: View next topic » |
Author |
Message
|
MB |
Posted: Tue Aug 10, 2004 3:02 am Post subject: Auto Defn Exits |
|
|
Acolyte
Joined: 25 Jun 2004 Posts: 52
|
Hi All,
I am working on developing of Auto Defn Exit.
Suppose this is my code:
__declspec(dllexport) void MQENTRY AutoDefExit (PMQCXP pChannelExitParams, PMQCD pChannelDefinition)
{
if(pChannelExitParams->ExitReason == MQXR_AUTO_CLUSSDR)
{
if(pChannelDefinition->ChannelType == MQCHT_CLUSSDR)
{
strcpy(pChannelDefinition->MsgExit,"NTMSG(MsgExit)");
strcpy(pChannelDefinition->MsgUserData, "AUDIT_Q");
}
}
/* Exit Response to MCA is set to OK in all cases */
pChannelExitParams->ExitResponse = MQXCC_OK;
return;
}
1. In the manual the AutoDefnExit parameters are explained to be (MQCXP ChannelExitParams, MQCD ChannelDefinition)
Is it ok if I have to use it like this (PMQCXP pChannelExitParams, PMQCD pChannelDefinition). Will this be a problem.
2. I have put the compiled dll name as Dllname(FunctionName) in the Queue Manager properties of the sender in the communications tab. Is this correct??
3. Suppose in the receiver channel definition I have message channel Exit info as NTMSG(MsgExit) and Data as TEST_Q. In this scenario the messages goes to TEST_Q.
4. Next in the receiver channel definition suppose I don’t give any exit info at all, then the NTMSG and AUDIT_Q from this Auto dll values are not getting copied. So original message goes to destined queue. But the message doesn’t go to AUDIT_Q. Should this mean the DLL is not being called or the function is incomplete.
Please, can any one help me with this.
Regards,
~MB. |
|
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
|
|
|
|