8.9.6 Running Demonstration Programs

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.

shell> 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 demo-fabric-hibernate target instead:

shell> JAVA_HOME=/opt/jdk1.6/ ant \
		-Dcom.mysql.fabric.testsuite.password=pwd \
		demo-fabric-hibernate
Note

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.