The Bank IDL
Since a distributed version has been adopted to present the application with
Transactional Object for Java, an IDL file named Bank.idl described below is
needed. The difference with the Bank.idl presented in previous trails is the
fact that the Bank interface inherits the CosTransactions::TransactionalObject
interface. Since we consider now that a Bank object need to modify its list
in a transactional, we consider now a Bank object as a CORBA transactional.
module arjuna {
module demo {
module jts {
module txojbank {
interface Account : CosTransactions::TransactionalObject
{
float balance();
void credit( in float value );
void debit( in float value );
};
exception NotExistingAccount
{ };
interface Bank : CosTransactions::TransactionalObject
{
Account create_account( in string name );
Account get_account( in string name )
raises( NotExistingAccount );
};
};
};
};
};