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’s the difference between hibernate and ejb 3?

0 Answers  


What are types in SessionBeans?

1 Answers  


Can stateful session beans are persistent?

2 Answers  


what is the Relationship between EJB and CORBA architecture?

0 Answers   IBM,


What is ejb in java with example?

0 Answers  






What is stateless and stateful session bean in ejb?

0 Answers  


What is EJB server provider?

0 Answers  


Should services be stateless?

0 Answers  


How is an entity bean created?

1 Answers  


Can more than a single table be mapped in cmp?

0 Answers  


Can tomcat run ejb?

0 Answers  


An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception?

0 Answers  


Categories