Updating Multiple Databases
Updating Multiple Databases
In
, the client calls a business method in Bean-A, which begins a transaction and
updates Database X. Then Bean-A invokes a method in Bean-B, which resides in a remote Java
EE server. The method in Bean-B updates Database Y. The transaction managers of the Java EE
servers ensure that both databases are updated in the same transaction.
Java EE
Server
Bean-B
Client
Bean-A
X
Y
Z
Databases
FIGURE 332
Updating Multiple Databases
Updating Multiple Databases
The Java EE 5 Tutorial · September 2007
1006