Interview Question: What is the difference between sessioncontext and entitycontext?

By: Ash Printer Friendly Format    

Question:What is the difference between sessioncontext and entitycontext?

Answer: Since EnterpriseBeans live in a managed container, the container is free to call your EJB components methods at its leisure. The container houses the information like current status of bean,security credentials of the user currently accessing the bean in one object is called EJBContext Object. A context represents a way for beans to perform callbacks and modify their current status Sessioncontext is EJB context for session bean Entitycontext is EJB context for entity bean Message driven context is EJB context for message driven bean

 

 

 

 



Most Viewed Articles (in Interview )

Interview Question: Is Struts compatible with other Java technologies?

Interview Question: Who wrote Struts?

Interview Question: Where can I get a copy of Struts?

Interview Question: How do I install Struts?

Interview Question: Why aren't the Struts tags maintained as part of the Jakarta Taglibs project ?

Interview Question: What is ActionServlet?

Interview Question: Why are some of the class and element names counter-intuitive?

Interview Question: What is EJB container?

Interview Question: What is Deployment descriptor?

Interview Question: What is EJB client JAR file?

Interview Question: What is Local client view in EJB?

Interview Question: What is Remote client view?

Interview Question: Can I invoke Runtime.gc() in an EJB?

Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

Latest Articles (in Interview)

Comment on this tutorial