Eric K - 2014-01-08

And I did try the BeanFactory method too, and was getting a no-arg instantiation error:

~~~~~~~~~~~~~~
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
net.sf.hajdbc.sql.CommonDataSourceDatabase does not have a no-arg default constructor.
this problem is related to the following location:
at net.sf.hajdbc.sql.CommonDataSourceDatabase
at net.sf.hajdbc.sql.DataSourceDatabase
at private net.sf.hajdbc.sql.DataSourceDatabase[] net.sf.hajdbc.sql.DataSourceDatabaseClusterConfiguration$DataSourceNestedConfiguration.getDatabases()
at net.sf.hajdbc.sql.DataSourceDatabaseClusterConfiguration$DataSourceNestedConfiguration
at private net.sf.hajdbc.sql.DataSourceDatabaseClusterConfiguration$DataSourceNestedConfiguration net.sf.hajdbc.sql.DataSourceDatabaseClusterConfiguration.configuration
at net.sf.hajdbc.sql.DataSourceDatabaseClusterConfiguration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I didn't really go too far down the rabbit hole as it looked like the constructors were a deeper part of your implementation.