Friday, March 13, 2009

What is the need of Remote and Home interface. Why cant it be in

Question :What is the need of Remote and Home interface. Why cant it be in
one? (EJB)

Answer :In a few words, I would say that the main reason is because there is a
clear division of roles and responsibilities between the two interfaces.
The home interface is your way to communicate with the container, that is
who is responsible of creating, locating even removing one or more beans.
The remote interface is your link to the bean, that will allow you to
remotely access to all its methods and members.
As you can see there are two distinct elements (the container and the
beans) and you need two different interfaces for accessing to both of them.

No comments: