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

By: Ash  

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

 

 

 

 


Archived Comments

1. Millard
View Tutorial          By: payday loans easy approval online at 2012-06-26 16:06:49


Most Viewed Articles (in Interview )

Latest Articles (in Interview)

Comment on this tutorial