servlets - Java Web application getting Cannot create PoolableConnectionFactory DB2 SQL Error: SQLCODE=-1776 for HADR configured on DB2 -
i have developed web application in i've configured 2 <resource>
proper parameters in server.xml of apache tomcat server, using jndi connection pool. among 2 resource tags in server.xml, first tag having details of primary server , tag contains details of standby server. idea if dont connection primary time, i'll switch datasource standby , run query servlet. when ran code, gave me error cannot create poolableconnectionfactory (db2 sql error: sqlcode=-1776, sqlstate= , sqlerrmc=1, driver=3.57.82)
i googled lot cant find concrete answer this, 1 thing common in i.e. hadr(hisgh availability disaster recovery) configuration of db2 server. please me out.
generally speaking, cannot connect standby database unless assumes primary role after take-over.
the correct way of setting db2 hadr cluster configure virtual ip address in cluster management software gets assigned new primary database after take-over; while change remains transparent client applications.
you'll need talk dbas learn how configure application.
Comments
Post a Comment