Atomikos Forum |
|
I tried to configure my applications using transaction essentials 3.5.4 with Tomcat and Spring. I have a service layer using multiple databases. This service layer will be used in multiple projects / webapplications. When starting Tomcat I always get
java.lang.RuntimeException: Log already in use? When the second webapp is started. I tried both, the Spring-Integration Tutorial and the Tomcat Tutorial provided by Atomikos Website but nothing seems to work. Can anybody tell me how to configure transaction essentials 3.5.4. with Spring using Tomcat?
Hi,
Did you configure different locations for atomikos log files? You can configure the locations with spring like following: <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> <prop key="com.atomikos.icatch.tm_unique_name">my-unique-tm-name-for-project1</prop> <prop key="com.atomikos.icatch.log_base_name">tmlog</prop> <prop key="com.atomikos.icatch.log_base_dir">c:/logs/project1</prop> <!-- DEBUGGING PROPERTIES --> <prop key="com.atomikos.icatch.output_dir">c:/logs/project1</prop> <prop key="com.atomikos.icatch.console_file_name">atomikos.log</prop> <prop key="com.atomikos.icatch.console_log_level">INFO</prop> <prop key="com.atomikos.icatch.threaded_2pc">true</prop> </props> </constructor-arg> </bean> |