Java Data Objects (JDO)
RMI and JDO
Gopalan Suresh Raj
work with any of these samples, you will need the
.........................................JDK 1.2 or higher (I use JDK 1.3.1)
.........................................PE:JTM - The Productivity Environment for JavaTM (from HYWY Software Corporation)
|Note: This article assumes that the reader has already created simple bank project using PE:J and JDO.|
The Transfer Money Object Interaction Diagram is as shown below:
The Transfer Money logic is as follows:
The IIOP Client (IIOPClient.java) obtains a reference to the TellerRemote (TellerRemote.java) remote object from Teller Server (TellerServer.java).
The IIOP Client (IIOPClient.java) invokes the transferMoney() method of the TellerRemote (TellerRemote.java) object.
The TellerRemote (TellerRemote.java) invokes the TransferMoney() method on the JDO Client (Teller.java).
The JDO Client (Teller.java) obtains a configured PersistenceManagerFactory from the JDOAdapter.
The JDO Client (Teller.java) uses the configured PMF to get a PersistenceManager.
The JDO Client (Teller.java) uses the Persistence Manager to obtain a Transaction object.
The JDO Client (Teller.java) begins a new Transaction using the Transaction object.
The JDO Client (Teller.java) invokes the credit method on the Checking object.
The JDO Client (Teller.java) then invokes the debit method on the Savings object.
The JDO Client (Teller.java) then commits the transaction by invoking the method in the Transaction object.
The JDO Client (Teller.java) then closes the Persistence Manager.
The JDO Client (Teller.java) then closes the JDOAdapter.
|Remoting JDO Objects using RMI|
You can download the entire enhanced folder from here.
click here to go to
My JDO HomePage...
click here to go
My Advanced Java Tutorial Page...
|About the Author...|
|Gopalan Suresh Raj is a Software Architect, Developer and an active Author. He has co-authored a number of books including "Professional JMS", "Enterprise Java Computing-Applications and Architecture" and "The Awesome Power of JavaBeans". His expertise spans enterprise component architectures and distributed object computing. Visit him at his Web Cornucopia© site (http://gsraj.tripod.com/) or mail him at email@example.com.|
This site was developed and is maintained by Gopalan Suresh Raj
This page has been visited times since February 26,2002.
Last Updated : Feb 26, 2002
All products and companies mentioned at this site are trademarks of their respective owners.