Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Fail Over / Round Robin

From: Mark Matthews <mark(at)mysql.com>
Date: Sat Aug 04 2007 - 19:20:14 EDT


> Fantastic Ronald ... just what i was looking for.
>

Alan,

Connector/J has had simiar functionality built-in for some time now, if you don't want as many "moving" pieces in your setup. Basically, you specify your master, and slaves, and tell C/J when you want to use one or the other by calling Connection.setReadOnly(boolean) "false" for write (or read) to/from the master, and "true" for read-only from one of the slaves.

See
http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-replication-connection.html for more info.

  -Mark

-- 
MySQL Java Mailing List
For list archives: 
http://lists.mysql.com/java
To unsubscribe:    
http://lists.mysql.com/java?unsub=lists@pantek.com
Received on Sat Aug 4 19:20:30 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:30:24 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library