Servant Policies
In the EJB model, operations are invoked on the EJBObject while in the CORBA model the POA provides the necessary support to intercept the method dispatches.
POA uses a Servant object to dispatch the incoming call to the object. Servant’s lifetime policies are:
- method : container activates the component every operation request and passivates it after the completion.
- transaction : container activates the component on the first operation request within a transaction and passivates the component after the transaction ends.
- component : the container activates the component on the first operation request and keep it activate until the component requests to be passivated.
- container : the container activates the component on the first operation request and decides when the component should be passivated.