• Post Reply Bookmark Topic Watch Topic
  • New Topic

when to use entitybean

 
Ashish Pagare
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some one help me in better understanding when exactly one should bend towards entity bean usage.
We have all stateless session beans and want to stick to them for performance reasons.
Regards,
Ashish
 
deepa karkala
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ashish, for processing business logic we will be using session beans and when we directly deal with data updation such as new record inserion, deletion and updation, we will be using entity beans.

Usage of entity beans avoids the coding regarding database operations in our application because of container managed persistence and our application becomes independent of the database we use.

While handling dependent tables, referential integrity can be very well managed if we use entity beans due to container managed persistence and abstract schema.

But usage of entity beans reduces the performance and hence in our project , we are trying to reduce the usage of entity beans .
jyothi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!