What is the difference between Stateful session Bean and Bean Managed Persistence Entity Bean. A stateful session bean can retain the session of a user. So what is purpose of using a BMP or CMP entity bean.

Questions by questioninterest

Showing Answers 1 - 1 of 1 Answers

Raj

  • Nov 7th, 2006
 

Entity Beans are purely related to database. Each entity bean should be mapped to a database table for data manipulation across distributed application with multiple users.

Session Bean are java object which performs business logic across distributed enviroment. The multiple instance session bean are deployed into EJB container pool & served to the users accordingly.

Stateless : Pick any session bean from pool. Perform the business logic. Send back to pool.

Stateful : Pick a session bean from pool & assigned to a particular user. Perform the business logic & maintain the state. If user requested for that session in some other system it will return the same bean with previous processed datas.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions