• 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

what is the need for home business methods?

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I skim through HeadFirst EJB 3rd chapter, I found a mention about home business methods. Anybody could you please, give me some real-time examples about it. :roll:

Thanks in Advance
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Home business methods are used in the case where the client needs only the data and not the EJBObject. In cases where the client is not going to use the bean for no other purpose other that what he requested(like available tickets in flight) home buss method is used. if he wants to book ticket then EJBObject is used.. i think you got it.
 
Kalyana Sundaram
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May I presume that this situation would occur when we use entity beans?
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kalyana,

We can define business methods in the entity bean home interface. In these methods, we can implement only the business logic that is not related to a specific entity bean representing a specific entity in the database. This is because a home business method is not required to return a reference to an EJBObject that the client would need to interact with a specific entity. We can implement home business methods that allow clients to perform operations on a set of entities that meet a certain criterion but whose identification is not known to the client.

Thanks,
Mahesh

-------
SCJP 1.4 | SCWCD 1.4 | SCBCD 1.3 | SCEA Part I - In Progress
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic