org.objectweb.jonathan.protocols.api
Interface RequestSession
public interface RequestSession
Request sessions represent the recipient of an invocation for an invocation
protocol.
getTarget
public Object getTarget()
Returns the target object represented by this request session.
- the target object represented by this request session.
send
public void send(UnMarshaller message,
ReplySession session)
throws JonathanException
Sends a message (a request) to its recipient.
The unmarshaller representing the invocation is sent together with a
reply session, to be used by the recipient to send the reply. The reply
session may be null if no response is expected.
It is the responsibility of the recipient to make sure that the unmarshaller
will properly be .
message
- the unmarshaller representing the request;session
- the session to send the reply;