How can I call one EJB from inside of another EJB?

Answers were Sorted based on User's Feedback



How can I call one EJB from inside of another EJB?..

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

How can I call one EJB from inside of another EJB?..

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

Post New Answer

More EJB Interview Questions

whatis the diff between ejb and servlet/jsp

6 Answers   TCS,


difference b/w the hybernate and entity bean

6 Answers   Wipro,


What does @inject mean in java?

0 Answers  


What is applicationscoped?

0 Answers  


ejb session beans and entity beans?

1 Answers  






Explain the important elements of ejb?

0 Answers  


How to invoke ejb from java client?

0 Answers  


How does ejb invocation happens?

0 Answers  


What is the purpose of a transaction monitor?

1 Answers  


Is microservice stateless?

0 Answers  


What is the procedure for the presentation of ejb persistence mechanism?

0 Answers  


Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?

0 Answers  


Categories