CalculatorRemote.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- package bible.webservices.rpc;
- import java.rmi.*;
- import javax.ejb.*;
- /**
- * The Remote Interface for the Calculator Statelss Session Bean.
- */
- public interface CalculatorRemote extends EJBObject {
- /**
- * Returns the sum of two long primitives.
- */
- public long add(long amount1, long amount2) throws RemoteException;
- /**
- * Returns the difference of two long primitives.
- */
- public long subtract(long amount1, long amount2) throws RemoteException;
- /**
- * Returns the product of two double primitives.
- */
- public double multiply(double amount, double factor) throws RemoteException;
- /**
- * Returns the quotient of two double primitives.
- */
- public double divide(double amount, double divisor) throws RemoteException;
- }