• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the need for home business methods?

 
Kalyana Sundaram
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
 
vinod balaji
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?
 
Mahesh Desai
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic