当在resin里跑多个含有atomikos控制事物的项目时,会报错,Log already in use。
解决方法:
加jta.properties或者transactions.properties文件,
在文件里加,
com.atomikos.icatch.console_file_name = rm.out
com.atomikos.icatch.log_base_name = rmlog.log
com.atomikos.icatch.service = com.atomikos.icatch.standalone.UserTransactionServiceFactory
不同的系统console_file_name 和log_base_name 要保证不一样,默认(不加jta.properties或者transactions.properties的时候)是tm.out和tmlog.log。