Friday, March 13, 2009

How should you type cast a remote object? Why (EJB)

Question :How should you type cast a remote object? Why? (EJB)
Answer :A client program that is intended to be interoperable with all compliant
EJB Container implementations must use the
javax.rmi.PortableRemoteObject.narrow(...) method to perform typenarrowing
of the client-side representations of the remote home and
remote interfaces. Programs using the cast operator for narrowing the
remote and remote home interfaces are likely to fail if the Container
implementation uses RMI-IIOP as the underlying communication transport.

No comments: