www.arjuna.com news company products standards research library forums contact
Trail map 1. Installation Content 2. The Sample Application 3. Deploying and Testing the Sample Application 4. Making the Sample Application Persistent 5. Recovery From Failure 6. Where Next? Navigation Home Previous Next Additional Trails Distributed Transaction Processing The X/Open DTP Model The OMG OTS Model Transactions in J2EE Configuring ATS Configuring the Recovery Manager ORB Portability Transactional Object For Java
| print this page
| email this page
> Making the Banking Application Persistent with Transactional Object For Java The banking application consists of a Bank object that contains a list of Account object, which in turn have a String (name) and a float (the value) as member variables. It appears clearly that from the persistent point of view, an Account Object need to store its name and its current balance or value, while the Bank Object need to store the list of accounts that it manages. #### Distributed Configuration The banking application with Transactional Object for Java (TXOJ) is configured to use JTS interfaces as the API to create the transaction, then an ORB to deploy it. The ArjunaTS distribution is provided to works with JacOrb version 2.1 that can be obtained from the arjuna product page. Note: Ensure that the jacorb jar files are added in your CLASSPATH #### Delpoy the Application - Start the Server
>     java com.arjuna.demo.jts.txojbank.BankServer
> - In a separate window, start the client
>     java com.arjuna.demo.jts.txojbank.BankClient
As for the demonstrations presented in the previous trails, the same menu is presented for the client with a set of operations such creating an account, credit/withdraw money to/from an account and making a transfer. Building the banking application with TXOJ tools
Copyright 2002-2005 Arjuna Technologies All Rights Reserved. info@arjuna.com +44 191 243 0676