Atomikos Forum |
|
using 3.5.4,
I've set the system variable com.atomikos.icatch.file=foo.properties and I get this in the output: Using init file: foo.properties Failed to open transactions properties file - using default values None of my properties are being used. Also, I am having trouble using the Spring "Advanced Case (As of 3.3)" mentioned here: http://www.atomikos.com/Documentation/SpringIntegration The problem is that the transactions.properties is still being searched for, even if I define com.atomikos.icatch.no_file=true. How do the UserTransaction and UserTransactionManager use the UserTransactionServiceImp? It seems like a singleton is not being used, and there is a new transaction service created when the TxManager is created.
Thanks Guy,
I think I see the problem, the code to read the file is UserTransactionServiceImp.java: java.io.File file = new java.io.File ( filename ); which looks for the file relative to the where the application was started. But this will not work with files on the classpath unless you do something like this: java.io.File file = this.getClass().getClassLoader().getResourceAsStream(filename); |