正在加载图片...
异常 /The code is used to create the remote interface of an enterprise bean //used by the HelloApp application import javax. ejb. * i import java rmi k public interface Hello extends EJBObject String sayHello(String My Name)throws Remote Exceptipn; sayHello方法抛出 RemoteException异常 Remote Exception异常是 Eava.rm包的一部分 当在客户端与服务器交互的过程中出现网络错误时会产生此异常 网络异常在任何时候都由可能发生,因此每个方法都必须抛出 Remote EXception异常,另外商业方法还可以抛出其它的异常//The code is used to create the remote interface of an enterprise bean //used by the HelloApp application import javax.ejb.*; import java.rmi.*; public interface Hello extends EJBObject { String sayHello(String MyName) throws RemoteException; } 异常 ◼ sayHello方法抛出RemoteException异常 ◼ RemoteException异常是java.rmi包的一部分 ◼ 当在客户端与服务器交互的过程中出现网络错误时会产生此异常 ◼ 网络异常在任何时候都由可能发生,因此每个方法都必须抛出 RemoteException异常,另外商业方法还可以抛出其它的异常
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有