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 )

What is difference between Java Bean and Enterprise Java Bean?

Can Entity Beans have no create() methods?

Explain garbage collection?

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

Explain the Polymorphism principle.

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

What are the services provided by a J2EE container?

Interview Question: Is Struts compatible with other Java technologies?

What types of comments are available in the JSP?

Question: How is the MVC design pattern used in Struts framework?

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

Interview Question: What is EJB client JAR file?

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

How to define an Interface?

Explain the user defined Exceptions?

Latest Articles (in Interview)