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 connections in WMB :help:

Post new topic  Reply to topic
 ODBC/JDBC connections in WMB :help: « View previous topic :: View next topic » 
Author Message
sunny2310
PostPosted: Mon Jul 07, 2014 5:24 pm    Post subject: ODBC/JDBC connections in WMB :help: Reply with quote

Newbie

Joined: 15 Aug 2012
Posts: 9

Hi Guys,

I am fairly new to WMB. I need to the Difference between the JDBC and ODBC connections in WMB, Wen to use what, Pros and Cons of Each,


Any pointers would be appreciated,
Thanks in Advance,

Sunny
Back to top
View user's profile Send private message
ruimadaleno
PostPosted: Tue Jul 08, 2014 1:23 am    Post subject: Reply with quote

Master

Joined: 08 May 2014
Posts: 274

Hy sunny,

please pay attention to the manual/infocenter documents, have in mind that not all nodes support the usage of JDBC datasource.
_________________
Best regards

Rui Madaleno
Back to top
View user's profile Send private message
MB Developer
PostPosted: Tue Jul 08, 2014 7:45 pm    Post subject: Reply with quote

Disciple

Joined: 03 Feb 2014
Posts: 179

Hi sunny,

JAVA Compute node --- JDBC Connection

Compute node ---- ODBC Connection


For more find in infocenter
_________________
Thanks....
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Jul 08, 2014 9:40 pm    Post subject: Reply with quote

Jedi Council

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

MB Developer wrote:
Hi sunny,

JAVA Compute node --- JDBC Connection

Compute node ---- ODBC Connection


For more find in infocenter

Is that the complete picture?

Perhaps you would like to revise the list of nodes that can use a JDBC Connection for the benefit of everyone.
_________________
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
alerajeshh
PostPosted: Thu Jul 10, 2014 10:46 am    Post subject: 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
mqjeff
PostPosted: Thu Jul 10, 2014 11:58 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Yes, you're wrong.
Back to top
View user's profile Send private message
alerajeshh
PostPosted: Thu Jul 10, 2014 12:06 pm    Post subject: Reply with quote

Acolyte

Joined: 19 Aug 2013
Posts: 55

can you please enlighten me .....
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 connections in WMB :help:
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.