Skip to content

Question about cleaning sessions. #2496

Discussion options

You must be logged in to vote

Proxies are lightweight client-side objects that you use to make invocations on remote objects. You typically don't need to worry about cleaning them up.

On the other hand, servants are server-side objects. If you create servants on behalf of a session, and register these servants with your object adapter, you should indeed cleanup these servants (cleanup meaning unregister them from the object adapter) when the session expires. And that's exactly what the code sample you included does.

In example i have this architecture

| - Session
| - - Hello1
| - - - Hello2
| - - - - Hello3

(Session can create Hello1, which can create Hello2, etc)

Releasing/destroying a proxy has no effect whatsoeve…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Fireshtorm1k
Comment options

Answer selected by Fireshtorm1k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants