Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Home methods

 
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
 
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
 
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic