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 » Send / Recive Exit sample - URGENT!

Post new topic  Reply to topic
 Send / Recive Exit sample - URGENT! « View previous topic :: View next topic » 
Author Message
emiranda
PostPosted: Fri Mar 14, 2003 11:45 am    Post subject: Send / Recive Exit sample - URGENT! Reply with quote

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
View user's profile Send private message
mqonnet
PostPosted: Fri Mar 14, 2003 1:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
emiranda
PostPosted: Fri Mar 14, 2003 1:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqonnet
PostPosted: Fri Mar 14, 2003 1:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
emiranda
PostPosted: Fri Mar 14, 2003 2:20 pm    Post subject: Reply with quote

Disciple

Joined: 21 Nov 2002
Posts: 196
Location: Dublin, Ireland

Thanks Kumar. I'll try!
_________________
Warm Regards,
EM
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 » Send / Recive Exit sample - URGENT!
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.