• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Home methods

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic