Created
July 27, 2013 09:25
-
-
Save bibryam/6094375 to your computer and use it in GitHub Desktop.
XADataSource
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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