Atomikos Forum

Using Atomikos with multiple JVM

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
Hassen BOUIH Send private email
Wednesday, January 27, 2016
 
 
BTW I'm using Atomikos transaction essentials 3.6.4
Hassen BOUIH Send private email
Wednesday, January 27, 2016
 
 
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
Guy Pardon Send private email
Saturday, January 30, 2016
 
 
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
Hassen BOUIH Send private email
Tuesday, February 02, 2016
 
 
Hi,

Yes, you do need recovery if the oracle DB goes down during commit and your application crashes.

Guy
Guy Pardon Send private email
Tuesday, February 02, 2016
 
 
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
Hassen BOUIH Send private email
Tuesday, February 02, 2016
 
 
No,

These are just the pools closing down when your JVM shuts down.

If that does not sound right, please consider a support subscription so we can go over your config.

Guy
Guy Pardon Send private email
Tuesday, February 02, 2016
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics