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

what is mean by OLE ? Please answer me. Advance thanks.

0 Answers   Excel,


when deploying an EJB, does it possible to specify multiple JNDI names?

1 Answers   IBM,


What Is EJB Clustering? Explain the Functionality?

1 Answers   Business Architectures, College School Exams Tests, HCL,


absract methods in EntityBean ?

1 Answers  


Is it possible to share an httpsession between a jsp and ejb?

0 Answers  






What is ejb and its types?

0 Answers  


Can stateful session beans are persistent?

2 Answers  


Transaction Attributes? What is the use of ?RequiresNew?

1 Answers   HCL,


When was ejb developed?

0 Answers  


whatis the diff between ejb and servlet/jsp

6 Answers   TCS,


Why should we use ejb?

0 Answers  


can anyone explain me the workflow of EJB.I have developed an app. in WSAD using an example that contains CMP and session bean.But i am not able to understand the basic flow between diffrent packages.

0 Answers  


Categories