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 garbage collection?

What is the difference between JTS and JTA?

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

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

Interview Question: What about JSTL and JavaServer Faces ?

Getting started with Interview

Interview Question: How do I install Struts?

What is difference between Java Bean and Enterprise Java Bean?

What is the difference between Session Bean and Entity Bean?

What do you understand by a container in J2EE?

Interview Question: What are the call back methods in Entity bean?

Is Iterator a Class or Interface? What is its use?

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

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

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

Latest Articles (in Interview)