Answer Posted / ch.n.v.ganesh
First, relationships are maintained through foreign
keys, but you do not define foreign keys as conventional
EJB variables; they are generated and maintained by the
container.
Second, relationships generate additional methods on the
local interfaces of the EJBs involved. Consequently, you
will need to work with the Home interfaces for beans
through JNDI, rather than using factory classes as you
might for accessing them through their Remote
interfaces.
Finally, Container Managed Relationship (cmr) fields
may be used in EJB QL queries, just like conventional
fields, but only for EJBs within the same jar file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the new basic requirement for a cmp entity bean class in 2.0 from that of ejb 1.1?
Is soap stateless or stateful?
The ejb container implements the ejbhome and ejbobject classes. For every request from a unique client, does the container create a separate instance of the generated ejbhome and ejbobject classes?
Is it possible to write two ejb’s that share the same remote and home interfaces, and have different bean classes? If so, what are the advantages/disadvantages?
What is stateful or stateless?
Name the attributes of javax.ejb.stateful.
Is it possible to have threading in ejb?
What is meant by ejb?
What is entity bean?
What is difference between ejb and spring?
What is ejb in java with example?
What are the design principles for ejb?
Should services be stateless?
Why stateless is better than stateful?
How is consistency maintained by Stateful Session through transaction updates ?