JBoss logo


print this page
email this page

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 JBossTS distribution is provided to work with the bundled JacORB version

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. Copyright 2008 JBoss, a division of Red Hat. All Rights Reserved.