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 » IBM MQ API Support » API Exits with SQL?

Post new topic  Reply to topic
 API Exits with SQL? « View previous topic :: View next topic » 
Author Message
jed
PostPosted: Sun Jul 11, 2004 11:42 pm    Post subject: API Exits with SQL? Reply with quote

Centurion

Joined: 08 Jan 2004
Posts: 118
Location: MI, USA

Is it possible to do API Exits with SQL?
I'm able to make an API Exit program to write into a flat file (text file).
I'm reading/checking the MQ Systems Administration Manual and Application Programming Guide regarding this and there is no metion on it.

Anyone can shed light on this?

Many thanks!
_________________
Jed
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
jefflowrey
PostPosted: Mon Jul 12, 2004 4:23 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Can you be more specific about what you mean by this question?

Yes, I believe you can write a C exit that will create a database connection, and pass SQL statements to an SQL interpreter on the database management system on the other side of the database connection.

Did you mean something less normal than "Can I connect to a database within an exit"?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jed
PostPosted: Mon Jul 12, 2004 7:35 pm    Post subject: Reply with quote

Centurion

Joined: 08 Jan 2004
Posts: 118
Location: MI, USA

Ooops, sorry about that Jeff.

Well, you posted the right question that I wanted to ask.

Can I connect to a database within an API Exit?

I can't find any information regarding connecting to a database or performing SQL commands within an API Exit.
_________________
Jed
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
oz1ccg
PostPosted: Mon Jul 12, 2004 10:41 pm    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

I don't see anything that should prevent you from using database calls from an API exit. If you use C/C++ you can do what ever you like.

Yse you can write to a flat fil if you like... just make shure that you code can manage the different naming conventions on differnet platforms: win, AIX, Z/OS etc.

My personal oppinion is keep application design inside your applications and use exits for special purposes only. The main reason is the exit is hidden from the programmers, and typicly it's forgotton when the application programmers made changes..

Another reason can be performance. The API exit is invoked frequently, and might cause performace degradation if the design is bad.... Too much complex SQL... etc.

I can see a usage for using the API exit for debuging, special transformations, encryption, thruput messaure etc.

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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » API Exits with SQL?
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.