EJB design: unSetSessionContext()

  1. unSetSessionContext() (1 messages)

    Hello All,

    Why don't we have unSetSessionContext() in the session bean?

    Alok Garg

    Threaded Messages (1)

  2. unSetSessionContext()[ Go to top ]


    That is what I call a really good question. However, I want to turn it the other way around: Why is there a unsetEntityContext() method?

    This method is called when the instance is moved to the "does no exist" state. And when an instance is in that state, I don't expect it to be called.

    I have looked at the state diagrams in sections 7.6 and 10.5 in the EJB 2.0 specification, but I cannot see any clear reason for the difference!?

    Maybe someone from Java-soft can answer?