Skip to content

Instantly share code, notes, and snippets.

@tobias
Created April 9, 2015 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobias/0508891b3698f732f03e to your computer and use it in GitHub Desktop.
Save tobias/0508891b3698f732f03e to your computer and use it in GitHub Desktop.
@Override
public synchronized TransactionManager manager() {
String propName = "com.arjuna.ats.arjuna.common.propertiesFile";
if (System.getProperty(propName) == null) {
System.setProperty(propName, "jbossts-properties.xml");
}
if (this.manager == null) {
this.manager = com.arjuna.ats.jta.TransactionManager.transactionManager();
}
return this.manager;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment