EJB Interview Questions and Answers
Ques. What is the need of Remote and Home interface. Why cant it be in one?Ans. 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.
Is it helpful? Yes No
Most helpful rated by users: