Programming Tutorials

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

By: Ash in Interview Tutorials on 2008-08-13  

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

 

 

 

 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

Explain the different forms of Polymorphism.

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

Interview Question: What is EJB client JAR file?

Interview Question: Where can I get help with Struts?

Interview Question: What is ActionServlet?

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

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

Interview Question: Do ActionForms have to be true JavaBeans?

Interview Question: What is Deployment descriptor?

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

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

Types of Interviews

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

What are all the different scope values for the tag?

What are Access Specifiers available in Java?

Latest Articles (in Interview)