29.11.2014 Views

Remoting patterns

Remoting patterns

Remoting patterns

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Pattern: Leasing<br />

• Context:<br />

• Clients use server application resources<br />

• Problem:<br />

• Resources no longer needed should be released<br />

• The lifecycle manager cannot determine when a particular remote<br />

object is not used anymore<br />

• Solution:<br />

• Associate each client’s use of a remote object with a lease<br />

• When the lease (or all leases) expire(s), the servant is destroyed by the<br />

lifecycle manager<br />

• Client can renew the lease<br />

• Call operation<br />

• Explicit renewal<br />

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