org.objectweb.easybeans.rpc.rmi.client
Class RMIClientRPC

java.lang.Object
  extended by org.objectweb.easybeans.rpc.rmi.client.RMIClientRPC
All Implemented Interfaces:
ClientRPC

public class RMIClientRPC
extends java.lang.Object
implements ClientRPC

RMI implementation of the RPC mechanism of EJB requests/responses.

Author:
Florent Benoit

Field Summary
private  java.util.Hashtable<?,?> rmiClientEnvironment
          Environment to use to get the remote RPC object.
 
Constructor Summary
RMIClientRPC(java.util.Hashtable<?,?> rmiClientEnvironment)
          Builds a new RMI client RPC with the given rmi environment.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rmiClientEnvironment

private java.util.Hashtable<?,?> rmiClientEnvironment
Environment to use to get the remote RPC object.

Constructor Detail

RMIClientRPC

public RMIClientRPC(java.util.Hashtable<?,?> rmiClientEnvironment)
Builds a new RMI client RPC with the given rmi environment.

Parameters:
rmiClientEnvironment - the RMI environment.
Method Detail

sendEJBRequest

public 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.

Specified by:
sendEJBRequest in interface ClientRPC
Parameters:
request - the EJB request.
Returns:
a response that have been processed by the server.