public abstract class BasicCalculatorClient
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
BasicCalculatorClient.CalcException_DivideByZero |
class |
BasicCalculatorClient.CalcException_InvalidOperation |
class |
BasicCalculatorClient.CalcException_NotInitialized |
Modifier and Type | Field and Description |
---|---|
com.ibm.websphere.samples.technologysamples.ejb.stateless.basiccalculatorejb.BasicCalculator |
bc |
com.ibm.websphere.samples.technologysamples.ejb.stateless.basiccalculatorejb.BasicCalculatorHome |
bcHome |
Constructor and Description |
---|
BasicCalculatorClient() |
Modifier and Type | Method and Description |
---|---|
BasicCalculatorClientResultBean |
calculate(java.lang.String operation,
double operand1,
double operand2)
Main service method for BasicCalculatorClient.
|
public com.ibm.websphere.samples.technologysamples.ejb.stateless.basiccalculatorejb.BasicCalculator bc
public com.ibm.websphere.samples.technologysamples.ejb.stateless.basiccalculatorejb.BasicCalculatorHome bcHome
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
operation
- Operation to perform: add, subtract, multiply, divideoperand1
- First operand of the operation.operand2
- Second operand of the operation.javax.naming.NamingException
java.rmi.RemoteException
BasicCalculatorClient.CalcException_DivideByZero
BasicCalculatorClient.CalcException_InvalidOperation
BasicCalculatorClient.CalcException_NotInitialized
javax.ejb.CreateException