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 » Need some info on Channel Exits.

Post new topic  Reply to topic
 Need some info on Channel Exits. « View previous topic :: View next topic » 
Author Message
jed
PostPosted: Thu Mar 11, 2004 6:47 pm    Post subject: Need some info on Channel Exits. Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
jefflowrey
PostPosted: Thu Mar 11, 2004 7:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
jed
PostPosted: Thu Mar 11, 2004 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
jefflowrey
PostPosted: Thu Mar 11, 2004 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
jed
PostPosted: Thu Mar 11, 2004 7:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
jefflowrey
PostPosted: Fri Mar 12, 2004 4:35 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Fri Mar 12, 2004 10:54 am    Post subject: Reply with quote

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
View user's profile Send private message
oz1ccg
PostPosted: Fri Mar 12, 2004 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
bower5932
PostPosted: Fri Mar 12, 2004 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
oz1ccg
PostPosted: Sat Mar 13, 2004 2:31 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
jed
PostPosted: Mon Mar 15, 2004 7:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Need some info on Channel Exits.
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.