public EnterpriseContextget(java.lang.Object id)
throws java.rmi.RemoteException,
java.rmi.NoSuchObjectException
Gets a bean instance from this cache given the identity.
This method may involve activation if the instance is not in the cache.
Implementation should have O(1) complexity.
This method is never called for stateless session beans.
Parameters:
id - the primary key of the bean
Returns:
the EnterpriseContext related to the given id
Throws:
java.rmi.RemoteException - in case of illegal calls (concurrent / reentrant),
NoSuchObjectException if the bean cannot be found.
Releases the given bean instance from this cache.
This method may passivate the bean to get it out of the cache.
Implementation should return almost immediately leaving the
passivation to be executed by another thread.