org.objectweb.easybeans.rpc.api
Interface ClientRPC

All Known Implementing Classes:
RMIClientRPC

public interface ClientRPC

All RPC implementation need to implement this interface which send a request to the remote side and receive a response forwarded back to the client.

Author:
Florent Benoit

Method Summary
 EJBResponse sendEJBRequest(EJBRequest request)
          Sends a request comes to the remote side.
A response is done by the remote side and it sends back a response.
 

Method Detail

sendEJBRequest

EJBResponse sendEJBRequest(EJBRequest request)
                           throws RPCException
Sends a request comes to the remote side.
A response is done by the remote side and it sends back a response.

Parameters:
request - the EJB request.
Returns:
a response that have been processed by the server.
Throws:
RPCException - if the invocation fails.