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 )

What is Deployment Descriptor?

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

Question: What is a Hidden Comment in JSP?

What is Collection API?

What types of comments are available in the JSP?

Interview Question: What is Struts?

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

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

Interview Question: Is there a particularly good IDE to use with Struts ?

Interview Question: What is Deployment descriptor?

Interview Question: What is EJB client JAR file?

Question: How would you go about analyzing performance of an application?

Why J2EE is suitable for the development distributed multi-tiered enterprise applications?

What is difference between Java Bean and Enterprise Java Bean?

What is bean managed transaction?

Latest Articles (in Interview)

Comment on this tutorial