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.
posted 13 years ago
May I presume that this situation would occur when we use entity beans?
Only those who will risk going too far can possibly find out how far one can go !!!
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.
------- SCJP 1.4 | SCWCD 1.4 | SCBCD 1.3 | SCEA Part I - In Progress