javax.ejb.EJBContext is an interface, which is implemented by the EJB container. It provides a context of an enterprise Bean instance to the runtime container-environment.
EJBContext API works like a window for the bean to the outside world through which it is interacting to the container. It is further categorized into SessionContext and MessageDrivenContext, and EntityContext for the session beans, message driven beans, and entity beans respectively.
objects provide the bean class with information about its container.
Read more at: