|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (5)
View Page HistoryOnce you have an instance of {{ComponentContexFactoryLocator}}, you will retrieve a remote component context that is your entry point on the Petals SE RMI to access the NMR. Two different kinds of remote component context are available:
* a remote component context for RMI client acting as a service 'provider', using {{ComponentContextLocator.getComponentClientContextFactory().createRemoteComponentContextProviderClient()}},
* and a remote component context for RMI client acting as a service 'consumer', using {{ComponentContextLocator.getComponentClientContextFactory().createRemoteComponentContextConsumerClient()}}.
h32. RMI client acting as a RMI client 'provider'
The code lines presented below allows a RMI client 'provider' to access to the remote component context to activate and deactivate an endpoint, to wait incoming message exchanges, to send message exchanges:
{code}
h32. RMI client acting as a RMI client 'consumer'
The code lines presented below allows a RMI client 'consumer' to access to the remote component context to get the remote message exchange factory and create different kind of messages, to send message exchanges and wait replies:
// create an robust in only message exchange
MessageExchange msgRobustInOnly = rmef.createRobustInOnlyExchange();
MessageExchange msgRobustInOnly = rmef.createRobustInOnlyExchange();
{code}
// Send a message exchange