I am browsing through the ontonet code trying to understand how it all
works and I found the following lines in
SessionManagerImpl.destroySession:

    ses.close();
    if (ses instanceof SessionImpl) ((SessionImpl) ses).state = State.ZOMBIE;

It seems a little strange that SessionImpl is treated differently here
to any other implementation of the Session interface. It is not clear
why the state would not be set properly in ses.close(), or rather why
it *couldn't* be set properly in ses.close for SessionImpl. If there
is a reason why it couldn't be set properly for SessionImpl then the
interface may need to change as other implementations could have the
same issue.

Is there an historical reason for this?

Cheers,

Peter

Reply via email to