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 » webSphere MQ with Postgresql

Post new topic  Reply to topic Goto page Previous  1, 2
 webSphere MQ with Postgresql « View previous topic :: View next topic » 
Author Message
rajat11@
PostPosted: Tue Oct 25, 2016 10:41 pm    Post subject: Reply with quote

Novice

Joined: 27 Jun 2016
Posts: 10

Vitor wrote:
rajat11@ wrote:
Should I change the getJDBCType4Connection() part and use some other way to make connection with the database??


I concur with my most worthy associate. You should widen your view, stop looking directly at this connection statement and review the rest of the node / flow to ensure proper transaction handling.


Yes . its works .. The problem is in Connection Url Format for PostgreSQL it is- jdbc:postgresql://[dbhost]:[port]/[dbname] .

Thanks all..
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Oct 26, 2016 3:20 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447


_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
BeTheChange
PostPosted: Fri Nov 04, 2016 10:34 am    Post subject: Reply with quote

Newbie

Joined: 22 Apr 2014
Posts: 7

rajat11@ wrote:


Yes . its works .. The problem is in Connection Url Format for PostgreSQL it is- jdbc:postgresql://[dbhost]:[port]/[dbname] .


@Rajat11:

I too need to setup a JDBC config and connection from IIB 9 to PostgreSQL.

Could you please share your JDBC config file details?

This is my JDBC config:

Code:

<configurableservice connectionUrlFormat="jdbc:postgresql://[dbhost]:[port]/[dbname]" connectionUrlFormatAttr1="" connectionUrlFormatAttr2="" connectionUrlFormatAttr3="" connectionUrlFormatAttr4="" connectionUrlFormatAttr5="" csName="JDBC_NAME" csType="JDBCProviders" databaseName="VoicePortal" databaseSchemaNames="useProvidedSchemaNames" databaseType="default_Database_Type" databaseVersion="default_Database_Version" description="WMB Staging Database" environmentParms="default_none" jarsURL="/WMBIntegrations/JARs/" jdbcProviderXASupport="false" maxConnectionPoolSize="5" portNumber="5000" securityIdentity="newSecurityID" serverName="servername.domain.com" type4DatasourceClassName="org.postgresql.ds.PGSimpleDataSource" type4DriverClassName="org.postgresql.Driver"/>


I used "getJDBCType4Connection" from the JavaCompute.

Code:
getJDBCType4Connection("JDBC_NAME", JDBC_TransactionType.MB_TRANSACTION_AUTO);
 


Received the following exception:
Code:
                                 Text:CHARACTER:jdbc:postgresql://[dbhost]:[port]/[dbname]
Text:CHARACTER:  error message: No suitable driver, SQLState value: 08001, stack trace: [com.ibm.broker.jdbctype4.jdbcdbasemgr.JDBCType4Connection.createNonXAConnection(JDBCType4Connection.java:358)
Back to top
View user's profile Send private message
BeTheChange
PostPosted: Tue Nov 08, 2016 7:06 am    Post subject: Reply with quote

Newbie

Joined: 22 Apr 2014
Posts: 7

My bad. The driver files were not refreshed in my JDBC settings. It was obvious in the error message but I missed it
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » webSphere MQ with Postgresql
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.