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 » error connecting DB2 JDBC provider with Message Broker 7

Post new topic  Reply to topic
 error connecting DB2 JDBC provider with Message Broker 7 « View previous topic :: View next topic » 
Author Message
wisemind
PostPosted: Mon Jun 21, 2010 5:46 am    Post subject: error connecting DB2 JDBC provider with Message Broker 7 Reply with quote

Apprentice

Joined: 16 Jun 2010
Posts: 29

Hii,

I am getting problem while configuring JDBC provider for DB2. I am currently using DB2 v 8.1.7.445 and Message Broker Toolkit V 7.

All commands related to mqsicreateconfigurableservice, mqsireportproperties and mqsichangeproperties works fine in Command Console. But getting error in Java Component while connecting to JDBC.


Here is my jova code:

Connection conn=this.getJDBCType4Connection("SIMPLERROUTEDB", JDBC_TransactionType.MB_TRANSACTION_AUTO);
Statement st=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);

ResultSet rs = st.executeQuery("SELECT NAME FROM MyUser.CUSTOMER");
while(rs.next()){
String s= rs.getString("NAME");
System.out.println("Data from Customer Table: " + s);
}

This is the exception that i am getting in console:



<com.ibm.broker.plugin.MbRecoverableException class:MbNode method:getJDBCType4Connection source:BIPmsgs key:6233 >
at com.ibm.broker.plugin.MbNode.getJDBCType4Connection(MbNode.java:1527)
at TotalPurchaseOrderFlow_JavaCompute.evaluate(TotalPurchaseOrderFlow_JavaCompute.java:21)
at com.ibm.broker.javacompute.MbRuntimeJavaComputeNode.evaluate(MbRuntimeJavaComputeNode.java:233)
at com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1434)
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 21, 2010 6:07 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You shouldn't be looking at the console, you should be looking at the syslog or the user trace.

BIP6233 has some inserts that are missing from the information you have posted, that would actully tell you why there was a problem establishing a connection to the given database URL.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 21, 2010 6:09 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Also, one the most common errors out there with JDBC connections occurs when people make changes to the ConnectionUrlFormat property.

LEAVE THIS ALONE. DO NOT PUT SPECIFIC VALUES IN IT.
Back to top
View user's profile Send private message
wisemind
PostPosted: Mon Jun 21, 2010 11:58 am    Post subject: Reply with quote

Apprentice

Joined: 16 Jun 2010
Posts: 29

Its giving error on the following java code line.

Connection conn=this.getJDBCType4Connection("SIMPLERROUTEDB", JDBC_TransactionType.MB_TRANSACTION_AUTO);

specifically to getJDBCType4Connection method. How to view syslog or the user trace. Actually i have enabled System.out statement for logging. Well All Commands in Command Console working fine and were successful.


Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 21, 2010 12:05 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/an04120_.htm
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 » error connecting DB2 JDBC provider with Message Broker 7
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.