What is the need of two Objects i.e EJBHome object and EJBobject to access a bean??

Showing Answers 1 - 4 of 4 Answers

palmari

  • Aug 3rd, 2006
 

EJBHomeObject is an interface, which is used as a parent interface for home interface in EJB.

EJBObject is an interface and used as a parent interface in Remote methods.

  Was this answer useful?  Yes

Srinivas Gorityala

  • Aug 11th, 2006
 

In order to achieve the location transperancy we need two objects,

since bean objects are not remote objects,ejb object delegates client request to the bean object,we have to create  ejb objects on client arrival only,then we haveto send ejb object reference to client,so we are giving chance to know the location of program,so we need another object,that is home object,this home object is a factory of ejb objects,this home object is created once when ejb component is deployed,here also a possibility to know the location of server program,so we require jndi services,jndiname is a nickname given by naming services,so we have to bind home object reference with that reference.

  Was this answer useful?  Yes

jagdish

  • Sep 15th, 2006
 

FjbHome is use for create a reference of EJBObject. EJBObject has a business method. we access a mehod using EJBHome interface.

  Was this answer useful?  Yes

Ramesh Chowdary

  • Oct 7th, 2006
 

Roles and responsiblities between to interfaces are diffrent.

Home interface is your way to communicate with container , who is responsible to creating ,locating even removing one or more beans

Remote interface that will allow you to remotely access to all its methods and members.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions