Skip to content

Instantly share code, notes, and snippets.

@bibryam
Created July 27, 2013 09:25
Show Gist options
  • Select an option

  • Save bibryam/6094375 to your computer and use it in GitHub Desktop.

Select an option

Save bibryam/6094375 to your computer and use it in GitHub Desktop.
XADataSource
public AtomikosDataSourceBean atomikosDataSourceBean() throws Exception {
EmbeddedXADataSource ds = new EmbeddedXADataSource();
ds.setCreateDatabase("create");
ds.setDatabaseName("target/testdb");
ds.setUser("");
ds.setPassword("");
AtomikosDataSourceBean xaDataSource = new AtomikosDataSourceBean();
xaDataSource.setXaDataSource(ds);
xaDataSource.setUniqueResourceName("xaDerby");
return xaDataSource;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment