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 |
What are different Methods and Classes written in a Session Bean
What is a ejb container?
can we have static initializer blocks in EJB?
Life cycle methods in stateful session beans?
What is the difference between session and entity beans? When should I use one or the other?
What does it mean to be stateless?
What is the difference between ejb and spring?
What is the difference between message driven beans and stateless session beans?
How many types of session beans are available in ejb?
Explain the architectural relationship between JavaBeans and JTA?
How 'messaging' supported in EJB 2.0 Specification?
What are versions of ejb?