EJBs are managed and controlled by the Java EE application server, it takes care of creating and delivering them to customers through injection and dependency management of their lifecycles . EJBs are stored by the server application in pools. Each time a client receives an EJB, the server application selects one from the pool and assigns it to the client. After the client is associated with it (there is no link to it on the client side), it returns to the pool and is ready for assignment to other clients.
. , , , , . .
EJB - - .
EJB:
beans
- EJB: , , ( , , , , ). Stateless EJB, .
- Statefull EJB: ( , )
- Singleton EJB: , , .
, beans
EBJ , , , POJO - , .