Atomikos Forum |
|
Hello,
I'm using Atomikos in my Spring Batch application and I need some advise. I want to run my application and use Atomikos for his XA commit between my Oracle database and an queue MQ Series. I have done all the configuration and everithing is working. The problem is that I have multiple JVM running at the same time that use Atomikos. I have configured all the Atomikos log so that they will write logs in different directory (including le locks of the usiqueResourceName) . When I do that I have from time to time an error in my logs "Log already in use" and one of my JVM just crash and wont start. To resolve this problem I have modified the property of the Spring bean "userTransactionService" for the class "com.atomikos.icatch.config.UserTransactionServiceImp" by adding the "com.atomikos.icatch.enable_logging" to false. After setting this property to false, the problem seems to be resolved. Can you explain me what is the purpose of this property? What might be the impact in my applications? Regards, Hassen
Hi,
If you disable logging then you might as well not use JTA/XA because there will be no crash/restart recovery. I recommend getting a professional subscription - it includes 2 hours of application certification that we can use to validate your configuration. See http://www.atomikos.com/Main/BuyOnline for details. Thanks
Hi Guy,
thanks for your feedback. For now my application is a POC to see if Atomikos fits our development needs. All I need is the XA commit between Oracle and MQ Series. So basically, if the XA commit can't be done (ex : Oracle database down), I rollback everything. As I understand it, I don't need the recovery process. I'm I right? Regards, Hassen
Hi Guy,
Thanks for your reply. I have putted back my "com.atomikos.icatch.enable_logging" to true as you said. I have seen that some of my JVM that use Atomikos have some strange logs in them (from the com.atomikos.icatch.console_file_file_name) : atomikos connection pool 'MYMQSeries' destroying pool... atomikos connection pool 'MYDB' destroying pool... atomikos connection pool 'MYMQSeries' destroying pool... atomikos connection pool 'MYDB' destroying pool... atomikos connection pool 'MYMQSeries' destroying pool... atomikos connection pool 'MYDB' destroying pool... What is the meanning of these logs? is it a timeout problem ? a pool connection problem? Regards Hassen |