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.

SAIWS - Requestors<br />

Two kinds of requestors one for synchronous invocations:<br />

SyncRequestor sr = new SyncRequestor();<br />

String result =<br />

(String) sr.invoke(endpointURL, operationName,<br />

null, rt<br />

… and one for asynchronous invocations:<br />

AsyncHandler ah = ...;<br />

Object clientACT = ...;<br />

AsyncRequestor ar = new asyncRequestor();<br />

ar.invoke(ah, clientACT, endpointURL, operationName,<br />

null, rt);<br />

// ... resume work<br />

134 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!