How to configure an application with a MySQL NDB cluster database so as the High availability as well the load balancing can be catered altogether. We can have these two capabilities separately by configuring the database connection url appropriately as below as I know.
For High Availability [1]
jdbc:mysql://[primary host][:port],[secondary host 1][:port][,[secondary host 2][:port]]...[/[database]]» [?propertyName1=propertyValue1[&propertyName2=propertyValue2]...]
For Load balancing [2]
jdbc:mysql:loadbalance://[host1][:port],[host2][:port][,[host3][:port]]...[/[database]] » [?propertyName1=propertyValue1[&propertyName2=propertyValue2]...]
The query is how to achieve both these capabilities with mysql ndb cluster if that is possible.
[1] - https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-config-failover.html