Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

entity & session bean

 
Veena Pointi
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read the following statement in sun's J2ee tutorial
"Like a table in a relational database, an entity bean may be related to other entity beans. "
Can session bean be related to other session bean?If yes how?
Thanks
Veena
 
Chetan M
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Veena,
An entity bean instance represents a unique record in database.In a single record of data u may have related data of some other table.So your quote "an Entity bean may be related to other entity beans" holds good.
Since session bean does not represent any such relational data rather any data at all, it cannot be related to other session bean.. but still a session bean can talk to other session bean for some services.
Chetan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic