• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Bean v/s Entity Bean

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could any body tell me the difference b/w entity beans and session beans for implementation perspective...

The difference I know is, entity bean provides business data and session beans provide flow. But not know much...

Thanks.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Could any body tell me the difference b/w entity beans and session beans for implementation perspective...

The difference I know is, entity bean provides business data and session beans provide flow. But not know much...

You have already pointed out the key difference. Entity bean provides mapping between Java object and the presistence storage while Session bean provides the workflow and session facade, which represents a task from the client.

This is a basic concept and you might read chapter 23 and 24 of J2EE 1.4 tutorial to have a better understanding.

Nick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic