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: What is Deployment descriptor?

What do you understand by a J2EE module?

What are the call back methods in Session bean?

What is similarities/difference between an Abstract class and Interface?

Explain the user defined Exceptions?

Explain the new Features of JDBC 2.0 Core API?

What is JSP Output Comments?

Interview Question: Is Struts compatible with other Java technologies?

Interview Question: Who wrote Struts?

Interview Question: Do you have to credit Struts on your own website?

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

Interview Question: How do I install Struts?

Interview Question: Does Struts include its own unit tests?

Interview Question: Where can I get help with Struts?

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

Latest Articles (in Interview)

Comment on this tutorial