• Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity beans

 
jai gurudev
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

anybody tell about this:

in general when we go for Entity bean and when we go for Session bean.

advantage of entity bean over session bean.

entity bean will store data in the database(ie instance once created it represents a row of data)actually where it stores whether it is in Appserver or Database.


thanks

jaigurudev
 
Leandro Melo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Entities Beans and Session Beans are user for diferent purposes.
Usually, we use Session Beans to act as a fa´┐Żade to your model, they act, together with Servlets (if there`s any) as a kind of Controller in the MVC arquitecture.
You can think in Session Beans as a implementation of your system Use Cases.

Entities Beans, as you said, represent persistent data.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!