ClusterJ multi thread java programming
Hi there,
I'm trying to develop a java application using the ClusterJ API.
The application is multi threaded and is inserting and updating records in transactions. It is possible threads will insert but certainly update the same records. At this moment I'm running into problems being not all records are inserted and updated. What will be the best approach to to handle with this requirements ?
Right now my main thread constructs a SessionFactory and passes a connection obtained from the factory to every thread. Every thread tries to insert and update records, when a exception occurs a rollback is performed and the transaction is run again (this because of possible dupliacate inserts or deadlocks). The result of my tests are that not all records are inserted and updated.
Can anybody help me out how to setup this properly ?
Thanks in advance,
Arco
Subject
Views
Written By
Posted
ClusterJ multi thread java programming
2677
April 02, 2015 07:03AM
1133
April 17, 2015 11:48AM
1055
April 17, 2015 12:25PM
1036
April 18, 2015 05:39PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.