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

By: Ash  

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 )

How to define an Abstract class?

Explain the new Features of JDBC 2.0 Core API?

Interview Question: What is EJB client JAR file?

What is the difference between interface and abstract class?

Interview Question: What is Local client view in EJB?

What are implicit Objects available to the JSP Page?

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

Interview Question: What are the optional clauses in EJB QL?

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

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

Interview Question: What is difference between EJB 1.1 and EJB 2.0?

What is the difference between jsp:include page and @ include file?

Interview Question: Can i map more than one table in a CMP?

What do you understand by JSP Actions?

What is the difference between Session Bean and Entity Bean?

Latest Articles (in Interview)

Comment on this tutorial