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 the procedure for the creation of stateless ejb?

0 Answers  


What does a deployment diagram specify?

2 Answers  


What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be specified as re-entrant?

0 Answers  


What is stateless ejb?

0 Answers  


What are the properties in Beans?

1 Answers  






What is EJB object?

0 Answers  


What are the various types of entity beam?

0 Answers  


What are versions of ejb?

0 Answers  


What are the basic and subtypes of enterprise java beans (ejb)?

0 Answers  


what is the Control flow of an Entity?

1 Answers  


What is ejb technology?

0 Answers  


what s the difference b/w EJB 2.0 and EJB 3.0 technically

2 Answers   Microsoft, Mind Tree, Tech Mahindra,


Categories