JTS needs to be instantiated, set as the transaction service of the ORB, and recovered before it can be used to create and manage transactions. The instantiation and setting as the transaction service can be done in two ways:With properties file
The ORB looks in the transactions.properties file for the default transaction service at stratup. It will instantiate an object of the class specified in that file, and call its initialize method. By default, this file conatins the following property:
#
# JBroker Transaction Service Properties
## the class name of the transaction service
transaction.service.class=com.sssw.jts.api.TransactionService
The transactions.properties file can be found in the following location:if you installed the ORB as the default ORB of Java 2 then it is in /usr/java/jre/lib/ext/classes directory.
During iniatialization JTS will publish itself and can be resolved as "TransactionService".
otherwise it is in the lib directory of the installation directory.Programatically
You can programmatically instantiate JTS and set it as the transaction service using the ORB TSIdentification API interface object. You must make sure that the transactions.properties does not specify any class as the transaction service.