What is the lifecycle of an extended persistence context scope with stateful session beans
the persistence context is created when an entity manager is retrieved from dependency injection or JNDI lookup , and is kept until the container closes it after the completion of the Remove stateful session bean method.