What is an EJB Context?

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.

Showing Answers 1 - 1 of 1 Answers

santh kumar

  • Feb 27th, 2006
 

Hi Guys,

EJBContext interface provides methods for interacting with the container.Such as u can obtain the enterprise bean's remote home interface(getEJBHome() method),local home interface(getEJBLocalHome() method),enterprise bean's environment properties(getEnvironment() method),to identify the caller(getCallerPrincipal() method),to know abt transactions.

to say there  r lot of things.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions