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 » Difference between JDBC and ODBC

Post new topic  Reply to topic
 Difference between JDBC and ODBC « View previous topic :: View next topic » 
Author Message
alerajeshh
PostPosted: Fri Sep 06, 2013 6:04 am    Post subject: Difference between JDBC and ODBC Reply with quote

Acolyte

Joined: 19 Aug 2013
Posts: 55

Hi,

I am having a small doubt,i have been searching for that but not able to find it..

For odbc connection to database we create System DSN with hostname portno dbname uid pwd and mqsisetdbparms and test with mqsicvp ..
which connects to databse

For JDBC how to do it ?
mqsicreateconfigurableservice %BROKER% -c JDBCProviders -o %DSN% -n databaseName -v %DBNAME%
mqsichangeproperties %BROKER% -c JDBCProviders -o %DSN% -n databaseType -v DB2
mqsichangeproperties %BROKER% -c JDBCProviders -o %DSN% -n connectionUrlFormat -v "jdbc:db2://%HOST%:%PORTNO%/%DBNAME%:user=%UID%;password=%PWD%;"
mqsichangeproperties %BROKER% -c JDBCProviders -o %DSN% -n serverName -v %HOST%
mqsichangeproperties %BROKER% -c JDBCProviders -o %DSN% -n portNumber -v %PORTNO%
mqsichangeproperties %BROKER% -c JDBCProviders -o %DSN% -n jarsURL -v "C:\Program Files\IBM\SQLLIB\BIN\java"
mqsichangeproperties %BROKER% -c JDBCProviders -o %DSN% -n type4DatasourceClassName -v com.ibm.db2.jcc.DB2XADataSource
mqsichangeproperties %BROKER% -c JDBCProviders -o %DSN% -n type4DriverClassName -v com.ibm.db2.jcc.DB2Driver
mqsisetdbparms %BROKER% -n %DSN% -u %UID% -p %PWD%
mqsisetdbparms %BROKER% -n jdbc::JDBC -u %UID% -p %PWD%
mqsistop %BROKER%
mqsistart %BROKER%
@rem mqsireportproperties %BROKER% -c JDBCProviders -a -o AllReportableEntityNames
mqsireportproperties %BROKER% -c JDBCProviders -o %DSN% -r


now this will connect to database ? i have passed values for all those broker name dsn uid pwd ..

when i enter mqsicvp for jdbc it is saying unable to connect database..

please clarify what we need to do for JDBC connection
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 06, 2013 6:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Remove the line that edits the ConnectionUrlFormat.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Sep 06, 2013 6:27 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Use code tags. (you have been told at least a dozen times, when will you honor our request?)
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Difference between JDBC and ODBC
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.