29.11.2014 Views

Remoting patterns

Remoting patterns

Remoting patterns

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Pattern: Invoker<br />

• Context:<br />

• A requestor sends a remote invocation for a remote object to a server<br />

• Problem:<br />

• Somehow the targeted remote object on the server has to be reached<br />

• Simplest solution: remote object is addressed over the network directly<br />

• Solution:<br />

• Large number of object → not enough network endpoints<br />

• Remote object would have to deal with network connections,<br />

receiving and demarshalling messages, etc.<br />

• Invoker(s) accept(s) invocations from requestors<br />

• Invoker reads the request and demarshalls it<br />

• Looks up the correct local object & operation and<br />

• Performs the invocation on the targeted remote object<br />

26<br />

Uwe Zdun, Markus Voelter, Michael Kircher - <strong>Remoting</strong> Patterns.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!