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 )

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

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

What is Collection API?

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

Interview Question: What is deployment descriptor?

Interview Question: What is Message Driven Bean?

Interview Question: What is EJB container?

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

Interview Question: What is the difference between find and select methods in EJB?

Interview Question: What is ActionServlet?

Getting started with Interview

Question: What is an Expression tag in JSP?

Interview Question: Why do we need Struts?

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

The output of System.out.println(5<<2) in Java

Latest Articles (in Interview)