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 » JDBC and IMS using cacjdbc21.jar

Post new topic  Reply to topic
 JDBC and IMS using cacjdbc21.jar « View previous topic :: View next topic » 
Author Message
nickkirk
PostPosted: Tue Feb 16, 2010 5:04 am    Post subject: JDBC and IMS using cacjdbc21.jar Reply with quote

Apprentice

Joined: 26 Sep 2008
Posts: 48

I am trying to connect from WMB v6.1 to IMS using the cacjdbc21.jar driver (WSClassic95).

I can connect using the following java;

Class.forName("com.ibm.cac.jdbc.Driver");
Connection conn = DriverManager.getConnection("jdbc:cac:CFEDYIMS:tcp/URL/9082", "username", "password");



However, when using the broker I can not connect.
I have set the following;

mqsicreateconfigurableservice BEC_MB -c JDBCProviders -o CAC -n connectionUrlFormat -v "jdbc:cac:CFEDYIMS:tcp/URL/9082:user=username;password=password;"

and I try connecting using a Java Compute node;

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


The error I get is;
"Failed to obtain JDBC Connection" 6233




Please help

Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Feb 16, 2010 5:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The connectionURLFormat is wrong.

It should be a *pattern* to define the tokens that get added from the rest of the JDBCProvider.

It should not be a *fully qualified and correct URL*.

Start over, with the assumption that things like "host" and "port" and "username" will be properties of the provider, and not character data in the connectionURLFormat.
Back to top
View user's profile Send private message
nickkirk
PostPosted: Tue Feb 16, 2010 5:28 am    Post subject: Reply with quote

Apprentice

Joined: 26 Sep 2008
Posts: 48

what is the correct connectionURLFormat for IMS using the cac driver ?
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Feb 16, 2010 5:42 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I can only guess.

Again, your value "dbc:cac:CFEDYIMS:tcp/URL/9082:user=username;password=password;" has *hardcoded* information.

If I were to *guess*, I would try something like "jdbc:cac:[connectionUrlFormatAttr1]:tcp/[connectionUrlFormatAttr2]/[portNumber]:user=[user];password=[password]"

But you might need to use "[databaseName]" for the CFEDYIMS value instead.

I don't know IMS, so I don't really understand the meaning of your URL.

The important point is to make sure you are using the [param] tokens instead of hardcoding the values, and then filling in the matching properties of the configurable service.
Back to top
View user's profile Send private message
nickkirk
PostPosted: Tue Feb 16, 2010 6:05 am    Post subject: Reply with quote

Apprentice

Joined: 26 Sep 2008
Posts: 48

Thanks mqjeff.

The important thing now is to find the correct connectionURLFormat for IMS using the cac driver.
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 » JDBC and IMS using cacjdbc21.jar
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.