This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "entity & session bean" Watch "entity & session bean" New topic
Author

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?
Thanks
Veena


SCJP1.4
"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.
Chetan


No matter how much you know today, you will have to know more tomorrow.<br /> Hakunamatata !!!
 
 
subject: entity & session bean
 
Similar Threads
What does the JNDI lookup return?
Which one will created first
HFEJB, Page no 368, Question 5
Multiple Session Facades?
CMP Problem.