com.ibm.websphere.samples.technologysamples.basiccalcclient.common
Class BasicCalculatorClient
java.lang.Object
com.ibm.websphere.samples.technologysamples.basiccalcclient.common.BasicCalculatorClient
- Direct Known Subclasses:
- BasicCalculatorClientJ2EE
public abstract class BasicCalculatorClient
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bc
public BasicCalculator bc
bcHome
public BasicCalculatorHome bcHome
BasicCalculatorClient
public BasicCalculatorClient()
calculate
public BasicCalculatorClientResultBean calculate(java.lang.String operation,
double operand1,
double operand2)
throws javax.naming.NamingException,
java.rmi.RemoteException,
BasicCalculatorClient.CalcException_DivideByZero,
BasicCalculatorClient.CalcException_InvalidOperation,
BasicCalculatorClient.CalcException_NotInitialized,
javax.ejb.CreateException
- Main service method for BasicCalculatorClient. Encapsulates all EJB access.
- Parameters:
operation
- Operation to perform: add, subtract, multiply, divideoperand1
- First operand of the operation.operand2
- Second operand of the operation.
- Returns:
- CalcResult object
- Throws:
javax.naming.NamingException
java.rmi.RemoteException
BasicCalculatorClient.CalcException_DivideByZero
BasicCalculatorClient.CalcException_InvalidOperation
BasicCalculatorClient.CalcException_NotInitialized
javax.ejb.CreateException