• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Home methods

 
Maneesh Chauahn
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,
What the home methods in the EJB . Why it is mandatory that for each home interface method (Xxxx), a crossponding ejbHomeXxxx method must exist in the bean class.

Thanks in advance for your prompt answer

Maneesh
 
Panav Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An enterprise Bean's home interface defines the methods that allow a client to create, find, and remove EJB objects. All bean classes must implement javax.ejb.EnterpriseBean so it is necessary to implement all the method of interface.
 
Maneesh Chauahn
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks for the anwser. why there is need to define the home method in the home interface as the home methods are more specific to the entire bean not to any specific instance of the entity bean

As per me , we have the option of the remote interface so we can define these methods in this . Why EJB 2.0 define the home method in the home interface , as the home interface also performing the business logic on the behalf of entity bean

This type of business logic can be defined in the remote inteface
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic