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: Passivation<br />

• Context:<br />

• The server application provides stateful remote objects<br />

• Problem:<br />

• Remote objects may not be accessed by a client for a long time<br />

• Still their servants occupy server resources<br />

• Problems regarding performance and stability<br />

• Solution:<br />

• Passivation:<br />

• Make remote objects – not accessed for a while – persistent<br />

• Then remove the unused servant from memory<br />

• Lifecycle Manager reactivates the object again upon the next invocation<br />

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