JDBC clients of a MySQL Cluster data source, and using Connector/J
5.0.6 (or later), accept
jdbc:mysql:loadbalance:// URLs (see
Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J),
with which you can take advantage of the ability to connect with
multiple MySQL servers to achieve load balancing and failover.
However, while Connector/J does not depend on the MySQL client libraries, it does require a connection to a MySQL Server, which ClusterJ does not. JDBC also does not provide any object mappings for database objects, properties, or operations, or any way to persist objects.
See MySQL Connector/J Developer Guide, for general information about using Connector/J.