learn java
The moose likes EJB and other Java EE Technologies and the fly likes entity & session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "entity & session bean" Watch "entity & session bean" New topic

entity & session bean

Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
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?

"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
Chetan M
Ranch Hand

Joined: Dec 18, 2002
Posts: 43
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.

No matter how much you know today, you will have to know more tomorrow.<br /> Hakunamatata !!!
I agree. Here's the link: http://aspose.com/file-tools
subject: entity & session bean