aspose file tools*
The moose likes Tomcat and the fly likes SQL Server database failover Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "SQL Server database failover" Watch "SQL Server database failover" New topic
Author

SQL Server database failover

Fred Tilly
Greenhorn

Joined: Aug 17, 2009
Posts: 1
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="jdbcracle: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

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQL Server database failover
 
Similar Threads
Database Failover
Oracle RAC intermittent connection
Passing user and password in Oracle RAC url
JBOSS 4.3.0 EAP Clustering with Apache HTTP Server 2.2.11
Multi datasource in websphere