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 types of comments are available in the JSP?

Interview Question: What is Action Class?

Interview Question: Who wrote Struts?

Interview Question: Does Struts include its own unit tests?

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

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

Interview Question: Do ActionForms have to be true JavaBeans?

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

Interview Question: What is local interface. How values will be passed?

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

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

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

Explain garbage collection?

Explain the different forms of Polymorphism.

What are implicit Objects available to the JSP Page?

Latest Articles (in Interview)

Comment on this tutorial