• Post Reply Bookmark Topic Watch Topic
  • New Topic

How entity bean special from Session Bean.

 
sushant devata
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session beans are transient and do not survive a server crash or a network failure.
Excluding the above point,functionally how entity bean is special from a session bean?
Even session Bean can contain methods that query,update and retrieve data in a relation table.
Where entity beans are must and should in a project?
 
Rishi Singh
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Entity beans are meant to be domain objetcs, they give you the object view of the database schema, they can be used to represent your data model.
They can serve multiple clients.
On the other hand session bean can also retrive,update data but they are only valid for the user session, they cant represent data .
Rishi
SCJP,SCWCD
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!