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.
Tuesday, April 21, 2009
I think I see the problem, the code to read the file is
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);
Wednesday, April 22, 2009
This topic is archived. No further replies will be accepted.Other recent topics