• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SQL Server database failover

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

We have an application that we run against an ORACLE RAC database and have the connections configured using Oracle JNDI connection pool resource in Tomcat. This all works fine. e.g.

<Context path="/lagan" docBase="/lagan">
<Resource name="jdbc/lagan"
auth="Container"
type="oracle.jdbc.pool.OracleDataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
factory="oracle.jdbc.pool.OracleDataSourceFactory"
url="jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=cluster-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=cluster-vip)(PORT=1521)) (CONNECT_DATA=(SERVICE_NAME=cluster1)))"
user="XX"
password="XX"
maxActive="20"
maxIdle="10"
maxWait="-1"
connectionCachingEnabled="true" />
</Context>

However we have some applications that use SQL Server 2005 and implement clustering through the standard windows clustering functionality, e.g. database failover.

Can the database connection in Tomcat be configured to support this type of SQL Server Cluster

Thanks

Fred

 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on your driver. I believe jTDS can do this, and I'm pretty certain the MS 2005 driver can do it too.

However, if you are using clustering you should not need to do anything special to your data source, it should just work, since Windows is doing all the clustering magic.
 
reply
    Bookmark Topic Watch Topic
  • New Topic