Author |
Message
|
jed |
Posted: Thu Mar 11, 2004 6:47 pm Post subject: Need some info on Channel Exits. |
|
|
 Centurion
Joined: 08 Jan 2004 Posts: 118 Location: MI, USA
|
Can Channel Exits monitor or check if an MQGET call has been done/made on a queue?
The reason i'm asking is, I need to log what date/time an MQGet has been done on a queue. That is, I'm not going to touch the application that does the MQGET call.
I read the IBM WebSphere MQ Intercommunication manual/book.
And it says that,
Channel message exit programs are called at the following places in an MCA's processing cycle:
* At MCA initiation and termination.
* Immediately after a sending MCA has issued an MQGET call.
* Before a receiving MCA issues an MQPUT call.
My understanding is that, I can use a channel exit program to monitor the MQPUT and MQGET calls. Am I right? _________________ Jed |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 11, 2004 7:00 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
No, I don't think you can use a channel exit to monitor the Gets and Puts to a queue.
You can, probably, put a channel ext on your Server Connection channels, and monitor the Puts and Gets that clients make that way, but that will only allow you to monitor the clients.
You can, at least with 5.3, use an API/API crossing exit that WILL let you monitor each and every MQ API call, from connects to inquiries and sets and Puts and Gets. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jed |
Posted: Thu Mar 11, 2004 7:15 pm Post subject: |
|
|
 Centurion
Joined: 08 Jan 2004 Posts: 118 Location: MI, USA
|
Hi Jeff,
What IBM book/manual should I read in order to know or get an understanding of this API/API thing......
Thanks,
Dino _________________ Jed |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 11, 2004 7:29 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Sorry, I wasn't too clear. The name of the exit is either "API", or "API Crossing". I forget which just right now at this very moment.
But it's documented as the "API Exit" in Chapter 15 of the Application Programming Guide. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jed |
Posted: Thu Mar 11, 2004 7:41 pm Post subject: |
|
|
 Centurion
Joined: 08 Jan 2004 Posts: 118 Location: MI, USA
|
Ok, thanks...... Just one last question.... just a quick one.
I do channel exit programs, I put them in the channel exits fields (name/data).
If I do API programs, where do I put them?
NOTE:
I haven't read yet the Applicatin Programming Guide, I just sat through the training on MQ 01 (Intro to MQ) and MQ 05 (MQ Programming) done by my boss. _________________ Jed |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Mar 12, 2004 4:35 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I don't know where they get applied for sure without looking it up myself.
But I believe that API exits get installed on the queue mananger. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Mar 12, 2004 10:54 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Jesus, on a Windows QM, open up MQServices, and do a Properties on the QM there. You will see a tab called Exits, where all this fun stuff is taken care of.
I have never done it myself, but I think this is where you would be configuring it for a Windows QM, assuming the API exits were already written. Unix QMs would have this in the qm.ini. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
oz1ccg |
Posted: Fri Mar 12, 2004 12:49 pm Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
There are a sample on how to write a API exit here:
http://www.developer.ibm.com/tech/sampmq.html
It don't do what you want, but it might act as inspiration.
Anyway think on performance here, the API exit will run a lot if you have a high thruput.... So you should consider if it's realy a good idea, and second how to optimize it to run fast.
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
bower5932 |
Posted: Fri Mar 12, 2004 2:38 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
The samples will have mirrorq in the name. The author actually monitors this forum. As far as a manual, check out the System Administration Guide. |
|
Back to top |
|
 |
oz1ccg |
Posted: Sat Mar 13, 2004 2:31 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
I didn't know who the author was, now I know It's nice coding.
Thanks for the good contribution to our planet
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
jed |
Posted: Mon Mar 15, 2004 7:22 pm Post subject: |
|
|
 Centurion
Joined: 08 Jan 2004 Posts: 118 Location: MI, USA
|
Oh, i see....
Thanks for the comments....
I'm thinking if its really worth to monitor the queues that much (Using the API Exit thingie).
I've just finished the channel exit audit log and its doing nicely.
But, I haven't put it in production yet.
Due to resource issues, backing up procedures and things like that.
I'll post the program (.DLL) and source codes here if its ok with you guys.
I'm also now finishing with the Event Monitoring program. _________________ Jed |
|
Back to top |
|
 |
|