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 » ODBC & JDBC

Post new topic  Reply to topic
 ODBC & JDBC « View previous topic :: View next topic » 
Author Message
alerajeshh
PostPosted: Tue Sep 24, 2013 7:30 am    Post subject: ODBC & JDBC Reply with quote

Acolyte

Joined: 19 Aug 2013
Posts: 55

ODBC & JDBC

1) When to use JDBC and when to use ODBC?

If you are using any .esql in message flow then you have to create ODBC (System DSN) for connecting to the database.

If you are using other than .esql in message flows then you have to create JDBC Type 4 Configurable Service


2) For Updating database Table?

We can update the database table using
Compute -ODBC
Java Compute-JDBC (if you are using MbSQL stmt in code use ODBC)
Database Node- ODBC

3) For Database Retrieval?

Compute-Compute
Java Compute- JDBC (if you are using MbSQL stmt in code use ODBC)
Database Nodes other than Database Node ( I mean Database Retrieve ,Database Route)—JDBC


4) What is ODBC Connection?

For ODBC we need to create System DSN, and mention the System DSN name in the properties of Compute and Database Node.

5) What is JDBC Connection?

For JDBC we need to create JDBC Type4 Configurable Service.
There are two ways of creating configurable service.
a) Through commands
b) Using MQ-Explorer

For Database Retrieve, Database Route Nodes mention the JDBC Type4 configurable service name in the properties tab.
For Java Compute Node we need to set up in the code.

Class.forName("com.ibm.db2.jcc.DB2Driver");

Connection conn =getJDBCType4Connection("xxxxx",DBC_TransactionType.MB_TRANSACTION_AUTO);

Depending on the database type select the respective driver.



please correct me if am wrong...

Thank you
Back to top
View user's profile Send private message
Simbu
PostPosted: Tue Sep 24, 2013 7:48 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

Mapping node is missing here which uses JDBC.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Sep 24, 2013 9:21 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Simbu wrote:
Mapping node is missing here which uses JDBC.


What about the ESQL functions that can be called from the Mapping Node?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Simbu
PostPosted: Tue Sep 24, 2013 10:55 pm    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

smdavies99 wrote:
Simbu wrote:
Mapping node is missing here which uses JDBC.


What about the ESQL functions that can be called from the Mapping Node?


Thanks, we can use ODBC in this way in Mapping Node but I presumed that "alerajeshh" refereed only the direct interaction with ODBC or JDBC from the node.
Back to top
View user's profile Send private message
McueMart
PostPosted: Wed Sep 25, 2013 4:11 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

Im not sure what the exact purpose of the post was. But if you are posting general information about ODBC and JDBC, then you missed the important information out pertaining to mqsisetdbparms and mqsicvp (i.e. what they are used for).
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 » ODBC & JDBC
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.