how to set the relationship between tables in ejb
Answer / 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 |
Is ejb a framework?
An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception?
Is it possible to have threading in ejb?
What is the difference between ejb and java beans?
whatis the diff between ejb and servlet/jsp
What are the key features of the ejb technology?
How EJB component can in interact with COM/DCOM components?
What are the various types of entrepreneur java bean?
How ejb invocation happens?
Define ACID Properties?
ejbCreate in Entity bean and create method in EJB home, have the same parameters?
Mention the three levels for applying interceptor methods.