WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

examples.cluster.ejb
Class Client.Balance

java.lang.Object
  |
  +--examples.cluster.ejb.Client.Transaction
        |
        +--examples.cluster.ejb.Client.Balance
Enclosing class:
Client

class Client.Balance
extends Client.Transaction

Performs a balance lookup.


Fields inherited from class examples.cluster.ejb.Client.Transaction
account1Balance, account1Id, account1Message, account1Server, account2Balance, account2Id, account2Message, account2Server, actionMessage, amount, result, tellerMessage, tellerServer, transId
 
Constructor Summary
(package private) Client.Balance(java.lang.String accountId)
          Constructs a Balance.
 
Method Summary
(package private)  void buildReport()
          Builds a report of the result of a transaction.
(package private)  void invokeTransaction()
          Calls a TellerBean to perform a balance lookup.
 
Methods inherited from class examples.cluster.ejb.Client.Transaction
getTransactionID, printReport, transaction
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client.Balance

Client.Balance(java.lang.String accountId)
         throws TellerException,
                java.rmi.RemoteException,
                javax.ejb.CreateException
Constructs a Balance.
Parameters:
accountId - string account ID
Throws:
TellerException - if there is an error in performing the transaction
java.rmi.RemoteException - if there is a communications or systems failure
javax.ejb.CreateException - if there is a problem creating a teller
Method Detail

buildReport

void buildReport()
Builds a report of the result of a transaction. Overshadows Transaction.buildReport().
Overrides:
buildReport in class Client.Transaction

invokeTransaction

void invokeTransaction()
                 throws TellerException,
                        java.rmi.RemoteException
Calls a TellerBean to perform a balance lookup. Overshadows Transaction.invokeTransaction().
Overrides:
invokeTransaction in class Client.Transaction
Throws:
TellerException - if there is an error in performing the transaction
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.