|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Send / Recive Exit sample - URGENT! |
« View previous topic :: View next topic » |
Author |
Message
|
emiranda |
Posted: Fri Mar 14, 2003 11:45 am Post subject: Send / Recive Exit sample - URGENT! |
|
|
 Disciple
Joined: 21 Nov 2002 Posts: 196 Location: Dublin, Ireland
|
Hi.
Does anybody have a simple sample of Channel Send/Receive exits? I need the entry point to that (MQENTRY).
Thanks. _________________ Warm Regards,
EM |
|
Back to top |
|
 |
mqonnet |
Posted: Fri Mar 14, 2003 1:01 pm Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
Here's a sample MQENTRY from the intercommunication book.
#include <cmqc.h>
#include <cmqxc.h>
void MQENTRY ChannelExit ( PMQVOID pChannelExitParms,
PMQVOID pChannelDefinition,
PMQLONG pDataLength,
PMQLONG pAgentBufferLength,
PMQVOID pAgentBuffer,
PMQLONG pExitBufferLength,
PMQPTR pExitBufferAddr)
{
... Insert code here
}
Also if you goto the repository on this site, i believe that cryptexit has code in it that deals with send/receive exits.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
emiranda |
Posted: Fri Mar 14, 2003 1:13 pm Post subject: |
|
|
 Disciple
Joined: 21 Nov 2002 Posts: 196 Location: Dublin, Ireland
|
Hi,
This is the same sample for the message exit...
So, I conclude the entry points are the same to message and send/receive exits and they will work at the point they are defined in the channel definition...
Am I right? _________________ Warm Regards,
EM |
|
Back to top |
|
 |
mqonnet |
Posted: Fri Mar 14, 2003 1:19 pm Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
There is no difference as far as entry points is concerned for the various exits. The implementation differs and that is within done with the code for the exit.
What differs is the arguments to MQENTRY. The arguments are all mandatory, but the format could be changed depending upon the requirement.
Say, for pAgentBuffer, you could define it as a PMQVOID or PMQBUFFER.
Hope this helps.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
emiranda |
Posted: Fri Mar 14, 2003 2:20 pm Post subject: |
|
|
 Disciple
Joined: 21 Nov 2002 Posts: 196 Location: Dublin, Ireland
|
Thanks Kumar. I'll try! _________________ Warm Regards,
EM |
|
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
|
|
|
|