None of the methods in the implementation throw a RemoteException.
这个实现中没有一个方法抛出RemoteException异常。
The services don't know a remote-interface or a RemoteException (how RMI).
服务不需了解一个远程接口或一个远程异常(RMI是如何的)。
You would still need to handle RemoteException exceptions when using the EJB.
您仍然需要在使用EJB时处理RemoteException异常。
However, there is no portable means to send specific subclasses of RemoteException.
然而,却没有用于发送RemoteException的特殊子类的可移植方法。
For demonstration purposes, I've thrown a RemoteException to show the use of cached data.
出于演示目的,我引发了一个RemoteException异常来表明使用的是缓存数据。
RemoteException - The EJB object could not be obtained because of a system-level failure.
因为系统级错误而不能获得EJB对象时抛出。
The worst offense is that you have to change the method signature to declare that it throws a RemoteException.
最大的麻烦就是需要更改方法签名以声明抛出一个RemoteException。
RemoteException - Thrown when the method failed due to a system-level failure or when invoked on a session bean.
方法抛出该异常表示一个由系统级错误或者因为会话bean调用引起的失败。
EJB code, for example, is wrappered by generated classes which catch exceptions and throw RemoteException instead.
例如,EJB代码由已生成的类打包,这些类捕获异常并抛出RemoteException异常代之。
For example, you can capture all RMI calls by specifying operations throwing RemoteException in a class implementing the Remote interface.
例如,可以通过指定在实现了Remote接口的类中抛出RemoteException的操作来捕获所有rmi调用。
While these tasks will eventually be incorporated into business logic, they're best represented by system-level exceptions like RemoteException.
尽管这些任务最终将被合并到业务逻辑中,但是最好用诸如RemoteException之类的系统级异常来表示它们。
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异常。
So you do have to make sure there is some knowledge in the calling application of an RMI object, or you could lose the wrapped information in a RemoteException (perhaps a NumberFormatException).
所以,您必须确保在调用RMI对象的应用程序中有一些知识,否则您会丢失在RemoteException (可能 NumberFormatException )中的包装信息。
So you do have to make sure there is some knowledge in the calling application of an RMI object, or you could lose the wrapped information in a RemoteException (perhaps a NumberFormatException).
所以,您必须确保在调用RMI对象的应用程序中有一些知识,否则您会丢失在RemoteException (可能 NumberFormatException )中的包装信息。
应用推荐