Recently I have been asked this question in interview.
To that my answer was,
1. Home interface is to create a bean instance(s) or getting a instance(s) from pool.
2. You bind your home stub with directory service (JNDI) so that your
EJB become portable. As a client you dont have to worry about where EJB is deployed.
I feel these answers are correct to some extent. But somehow I am not satisfied with this answer. I think I am missing something important.
Could we have only one interface?
Please correct me.
Regards
Anup