None of the methods in the implementation throw a RemoteException.
这个实现中没有一个方法抛出RemoteException异常。
You would still need to handle RemoteException exceptions when using the EJB.
您仍然需要在使用EJB时处理RemoteException异常。
For demonstration purposes, I've thrown a RemoteException to show the use of cached data.
出于演示目的,我引发了一个RemoteException异常来表明使用的是缓存数据。
The worst offense is that you have to change the method signature to declare that it throws a RemoteException.
最大的麻烦就是需要更改方法签名以声明抛出一个RemoteException。
While these tasks will eventually be incorporated into business logic, they're best represented by system-level exceptions like RemoteException.
尽管这些任务最终将被合并到业务逻辑中,但是最好用诸如RemoteException之类的系统级异常来表示它们。
RemoteException - The EJB object could not be obtained because of a system-level failure.
因为系统级错误而不能获得EJB对象时抛出。
RemoteException - Thrown when the method failed due to a system-level failure or when invoked on a session bean.
方法抛出该异常表示一个由系统级错误或者因为会话bean调用引起的失败。
Meanwhile, according to the spec, the container must catch system exceptions, mark the transaction for rollback, and throw RemoteException or EJBException to the EJB client.
同时,根据该规范,容器必须能够捕获系统异常,标记事务用于回滚,并向EJB客户端抛出RemoteException或EJBException异常。
Meanwhile, according to the spec, the container must catch system exceptions, mark the transaction for rollback, and throw RemoteException or EJBException to the EJB client.
同时,根据该规范,容器必须能够捕获系统异常,标记事务用于回滚,并向EJB客户端抛出RemoteException或EJBException异常。
应用推荐