Why does EJB needs two interfaces, Home and Remote
Interface?

Answers were Sorted based on User's Feedback



Why does EJB needs two interfaces, Home and Remote Interface?..

Answer / niranjanravi

Home Interface is the means to connect to the container
Remote Interface is your way to link to the bean

Is This Answer Correct ?    15 Yes 6 No

Why does EJB needs two interfaces, Home and Remote Interface?..

Answer / deepti mehta

HOME INTRFACE:- The home interface defines methods that
allow EJB clients to create and find EJB component.

REMOTE INTERFACE:- A remote interfece defines all the
business methods of the enterprise bean that the EJB client
would invoke.

Is This Answer Correct ?    13 Yes 5 No

Why does EJB needs two interfaces, Home and Remote Interface?..

Answer / sitaram karancheti

Home Interface: Contains methods that are not tied to a
specific EJB instance (i.e. methods at class level), like
methods for creating removing and finding EJB instance.

Remote Interface: Contains methods tied to a specific EJB
instance, such as methods that provides the actual business
logic.

Is This Answer Correct ?    9 Yes 1 No

Why does EJB needs two interfaces, Home and Remote Interface?..

Answer / john doe

The Home Interface is used to create an EJB Object. The Home
interface specifies the Remote interface and calls the
create(). After the EJB Object is created it will return its
reference to the Home Interface.

When a call to a function is made. The client will use this
reference and call the specific remote interface which
inturn will pass the request to the EJB Object. The EJB
Object decides which function has to be called from the EJB

Is This Answer Correct ?    9 Yes 5 No

Post New Answer

More EJB Interview Questions

What is stateless authentication?

0 Answers  


What are the key features of the ejb technology?

0 Answers  


What is ejb and why it is used?

0 Answers  


What are the system services of ejb container?

0 Answers  


Explain the architectural relationship between JavaBeans and JTA?

0 Answers  






What are the design goals of EJB Architecture?

1 Answers  


Enlist the CallBack methods of Entity Bean.

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  


what is SessionBean, EntityBean?

2 Answers  


Can more than a single table be mapped in cmp?

0 Answers  


What does ejb stand for?

0 Answers  


Is decorator an ejb design pattern?

0 Answers  


Categories