WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

examples.cluster.ejb.teller
Class TellerBean.Withdrawal

java.lang.Object
  |
  +--examples.cluster.ejb.teller.TellerBean.Transaction
        |
        +--examples.cluster.ejb.teller.TellerBean.Withdrawal
Enclosing class:
TellerBean

class TellerBean.Withdrawal
extends TellerBean.Transaction

Performs a withdrawl.


Fields inherited from class examples.cluster.ejb.teller.TellerBean.Transaction
account1, account1Id, account1PK, account1Result, account2, account2Id, account2PK, account2Result, amount, transactionId, tx
 
Constructor Summary
(package private) TellerBean.Withdrawal(java.lang.String accountId, double amount, java.lang.String transactionId)
          Constructs a Withdrawal.
 
Method Summary
(package private)  void invokeTransaction()
          Finds and calls an account bean to perform a withdrawal.
 
Methods inherited from class examples.cluster.ejb.teller.TellerBean.Transaction
transaction
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TellerBean.Withdrawal

TellerBean.Withdrawal(java.lang.String accountId,
                      double amount,
                      java.lang.String transactionId)
Constructs a Withdrawal.
Method Detail

invokeTransaction

void invokeTransaction()
                 throws AccountException,
                        javax.ejb.FinderException,
                        java.rmi.RemoteException
Finds and calls an account bean to perform a withdrawal. Overshadows Transaction.invokeTransaction().
Overrides:
invokeTransaction in class TellerBean.Transaction
Throws:
AccountException - if there is an error in performing the transaction
javax.ejb.FinderException - if there is an error in finding the EJBean
java.rmi.RemoteException - if there is a communications or systems failure

Documentation is available at
http://e-docs.bea.com/wls/docs60

Copyright © 2000 BEA Systems, Inc. All Rights Reserved.