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 » WebSphere Message Broker (ACE) Support » steps needed to call stored procedure from compute node

Post new topic  Reply to topic
 steps needed to call stored procedure from compute node « View previous topic :: View next topic » 
Author Message
pcelari
PostPosted: Mon Feb 26, 2007 2:58 pm    Post subject: steps needed to call stored procedure from compute node Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

I want to call a stored procedure defined on a remote DB2 database from within a compute node.

I defined the following in my compute node:

create procedure CallMySP(in ID char, out ResultSetMsg char)
external name "DB2SP_GETCUSTINFO";

I wonder what other configurations I need to perform on the broker machine. Do I need to create a database catalog that points to that remote DB or just an odbc connection to that database?

It might be too trivial a question, I'm not quite a DB2 literate.
Thanks a lot for any input.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Feb 26, 2007 4:49 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to establish a connection to that database in order to invoke a stored procedure on it.

In order to establish a connection to that database that ESQL can access, you need to create an ODBC datasource.

In order to create an ODBC datasource for a remote DB2 instance, you need to catalog it into your local db2 catalog.

In order to access an ODBC datasource, you probably need to specify a valid user name and password using mqsisetdbparms.

In order for ESQL to access an ODBC datasource, it needs to be referenced in the flow by name - either on the node properties or on the database call.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
au@kosa
PostPosted: Tue Feb 27, 2007 1:28 am    Post subject: Reply with quote

Centurion

Joined: 04 Jan 2007
Posts: 103
Location: pune

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ad09260_.htm
_________________
Regards,
au@kosa
IBM Certified SOA Solution Designer/Associate
Back to top
View user's profile Send private message Yahoo Messenger
pcelari
PostPosted: Tue Feb 27, 2007 7:18 am    Post subject: Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

jefflowrey wrote:
You need to establish a connection to that database in order to invoke a stored procedure on it.

In order to establish a connection to that database that ESQL can access, you need to create an ODBC datasource.

In order to create an ODBC datasource for a remote DB2 instance, you need to catalog it into your local db2 catalog.

In order to access an ODBC datasource, you probably need to specify a valid user name and password using mqsisetdbparms.

In order for ESQL to access an ODBC datasource, it needs to be referenced in the flow by name - either on the node properties or on the database call.


Wooow, that's a detailed way guide. Many thanks! I'll put up a step-by-step list when I'm done with the venture.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
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 » WebSphere Message Broker (ACE) Support » steps needed to call stored procedure from compute node
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.