if (_txManager == null)
throw new RuntimeException("No transaction manager");
if (_dataSource == null)
throw new RuntimeException("No data source");
BpelDAOConnectionFactoryJDBC daoCF = new BPELDAOConnectionFactoryImpl();
daoCF.setDataSource(_dataSource);
daoCF.setTransactionManager(_txManager);
Properties props = new Properties();
props.put("openjpa.Log", "log4j");
props.put("openjpa.jdbc.SynchronizeMappings", "buildSchema(ForeignKeys=false)");
daoCF.init(props);
_daoCF = daoCF;
return _daoCF;
}