Atomikos Forum |
|
I recently upgraded to Atomikos 3.8 but seem to have lost some of the log files that used to be created. The documentation says that the following should be OK:
<bean id="userTransactionService" class="com.atomikos.icatch.config.UserTransactionServiceImp" init-method="init" destroy-method="shutdownForce"> <constructor-arg> <props> <prop key="com.atomikos.icatch.service">com.atomikos.icatch.standalone.UserTransactionServiceFactory</prop> </props> <prop key="com.atomikos.icatch.console_file_name">tm.out</prop> <prop key="com.atomikos.icatch.log_base_name">tmlog</prop> <prop key="com.atomikos.icatch.console_log_level">DEBUG</prop> <prop key="com.atomikos.icatch.enable_logging">true</prop> </constructor-arg> </bean> and then in my log4j.xml file I have: <appender name="atomikos" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${catalina.base}/logs/atomikos/atomikos-log4j.log"/> <param name="MaxFileSize" value="1MB"/> <param name="MaxBackupIndex" value="5"/> <param name="append" value="false"/> </layout> </appender> <!-- Atomikos logging --> <logger name="com.atomikos"> <level value="DEBUG"/> </logger> The log files I get are: tm2.epoch (binary) atokikos-log4j.log (always empty) tmlog.lck (always empty - but probably OK as it is a lck file) tmlog2.log (binary) The biggest problem seems to be that if I miss out the last 4 properties in the userTransactionService I don't get any Atomikos files (so they must be needed), and I don't get any output to the atomikos-log4j file. Before I upgrading to Atomikos 3.8 I used to get a tm.out log that contained useful information about exceptions that were thrown. Now I don't have any of that information at all. Can anyone comment on my configuration?
Sorry, as is frequently the case I got it working shortly after posting. I am not exactly sure what I did but I think I may have missed of the:
<root> ... // Other appenders <appender-ref ref="prosoc-atomikos"/> </root> in the log4j.xml file. Nothing to do with Atomikos at all. |