Hello,
I read J2EE without EJB.In chapter 9 (transaction) is assert :
When we request distributed database , we have to use JTA
It isn't complete correct.
With Oracle (> ver 7) we have distributed transaction and 2pc with simple JDBC (and any client)
We havn't to have Oracle RAC - it exists in standard database, RAC isn't for distributed transaction - it is if more processes (processors) access to one databases - cluster or parallel access
For example :
database1 have table 1
database2 have table2
We can make database link on database1 on table2 on database2 and transaction is :
connect to database1
begin transaction
update table1
update table2@database
commit
For distributed transaction in Jva we have to have only simple JDBC (or for instance hibernate wthout JTA)
We can make synonym on database1 to table2 on database2 and access to tables is transparent - we haven't to know where is table and transaction can be like :
connect to database1
begin transaction
update table1
update table2
commit
table1 and table2 are on differnet database (can be different computers) and transaction is distributed without J2ee server - oracle do distributed work for us)
regards


Reply With Quote