How can I call one EJB from inside of another EJB?
Answers were Sorted based on User's Feedback
Answer / anil prasad
One EJB can be called from another EJB by using interfaces
EJBLocalHome and EJBLocalRemote. In the ejbCreate() of the
Home interface of another bean the remote reference of the
local EJB can be obtained. In any case the local ejb
cannot be accessed by the client outside the ejb container.
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / kameshwar
EJBs can be clients of other EJBs. It just works. Use JNDI
to locate the Home Interface of the other bean, then acquire
an instance reference, and so forth.
| Is This Answer Correct ? | 3 Yes | 1 No |
can we have static initializer blocks in EJB?
How can a CORBA object, accessed from a EJB?
when deploying an EJB, does it possible to specify multiple JNDI names?
What is ejb bean in java?
What is use of @postconstruct?
What is entity bean in ejb?
Which is more beneficial: CMP or BMP?
how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?
What are the callback annotations for the stateless bean?
Explain the architectural relationship between JavaBeans and JTA?
can we stop the execution of a method before completion?
What are the various types of entrepreneur java bean?