db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jdo Wiki] Update of "Failover" by ErikBengtson
Date Sat, 24 Dec 2005 10:53:47 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jdo Wiki" for change notification.

The following page has been changed by ErikBengtson:

New page:
= Failover in JDO =

JDO needs the capability to recover from connection failures switching to backup servers upon

== Requirements ==

 * Switch to backup server when JDO is unable to obtain a connection to a database server/engine,
or the connection breaks while in use.

 * User may be able to configure an ordered list of datasources.
 * JDO will default to the first datasource in the list, and if unable to obtain a connection,
will attempt to obtain a connection from the next datasource in the list.

 * JDO will raise JDODatastoreException when unsuccessful attempts to obtain connection in
all datasources are exausted.
 * If a database connection in use breaks, JDO may try to recover using the same datasource
before switching to the next datasource in the list.
 * If a database connection in use breaks, JDO will apply changes made previously to the new
connection during JDO transaction commit or flush. The broken connection has changes rolled
 * Each datasource in the list, may have a test statement that verifies if the connection
is healthy.
 * For every new transaction, JDO will switch back to the first datasource in the list.
 * JDO, in background, may track which datasources are heathy to do faster switching.

View raw message