JTS Sample Programs

Note: Each example includes an ANT build file, which allow you to build and run the example. If you do not have ANT, please download it from the Apache web site. Inside each example directory, there is a README file that lists the steps to build and run the example.

common - Utility classes used by other packages

Set of shared utility classes that are used from other examples. Such as Database connectivity utility. To change your examples to use a different database driver you can modify the code in this package.

init - Initialization

Examples of how to identify the transaction services to the ORB.

tx1ph - Using OnePhaseResource in transactions

Example of using JTA interfaces to perform distributed transactions including OnePhaseResource.

txjta - Transactions with JTA Interfaces

Example of using JTA interfaces to perform distributed transactions.

txBank - Transactional implementation of Bank example

Example of transactional Bank implementation using XA connection to database for storage.

resBank - Transactional implementation of Bank example using Resource

Example of transactional Bank implementation using CORBA Resources.

transobjres - Transaction with JTS using Resource

Example implementation of a Transactional Object that uses a Resource as its storage.

transobjxa - Transactions with JTS Using XA

Example implementation of a Transactional Object that uses XA capable DBMS as its storage.

transclient - Distributed Transaction

Example program that does distributed transaction using two Transactional Objects form served from two separate servers.



Copyright © 2003, 2004 Novell, Inc. All rights reserved. Copyright © 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved.