What are the benefits of using EJB over POJO?

Why should I use EJB? What can I get from this that I cannot get in other ways?

What are the benefits of using EJB over POJO?

+5
source share
1 answer

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

, beans

  • EJB, : , , JMS. .

EBJ , , , POJO - , .

+6

All Articles