Injecting Stateful bean Scope of the internal request Bean

What is the difference between embedding a stateful ejb bean inside a scoped session bean request versus injecting idle ejbbean inside a scoped session bean request? Does the query support the bean scope create a new instance for the bean state every time it is called?

+4
source share
1 answer
  • Before deploying a stateful bean, it is in the Non-existent state . After a successful deployment, the EJB container performs any necessary dependency injection on the bean, and it enters the Finish state . At the moment, the bean is ready to have its methods called by the client application.
  • When a session with a bean state is in a ready state, the EJB container can select passivate , that is, move it from the main memory for secondary storage. When this happens, the bean enters the Passive state .
  • If the bean state instance was not available for a period of time, the EJB container will set the bean to Exist Not Working .
  • A bean , beans .
  • RequestScoped bean , HTTP--.

bean bean HTTP--, .

+2

Source: https://habr.com/ru/post/1569012/


All Articles