To run the demo programs, you must set up the MySQL Fabric
environment as described in
Section 8.9.4, “MySQL Fabric Configuration for Running Samples”. After that, you
can use the
demo-fabric-* Ant targets.
JAVA_HOME=/opt/jdk1.5/ ant \ -Dcom.mysql.fabric.testsuite.password=pwd \ demo-fabric
These targets invoke all demo programs except Hibernate demos. You
should use the
JAVA_HOME=/opt/jdk1.6/ ant \ -Dcom.mysql.fabric.testsuite.password=pwd \ demo-fabric-hibernate
You need Java 6+ to use Hibernate Fabric integration. Multi-tenancy is a feature specific to Hibernate 4 and higher which requires Java 6+. That is why we do not provide the FabricMultiTenantConnectionProvider class or related demos compatible with Java 5.