Answer:
EJBContext is an interface that is implemented by the container, and it is also a part of the bean-container contract. Entity beans use a subclass of EJBContext called EntityContext. Session beans use a subclass called SessionContext. These EJBContext objects provide the bean class with information about its container, the client using the bean and the bean itself. They also provide other functions. See the API docs and the spec for more details.
Previous Question | Next Question |
How can I call one EJB from inside of another EJB? | Is is possible for an EJB client to marshal an object of class java.lang.Class to an EJB? |