What is the actual use of
setSessionContext()
setEntityContext()
unSetEntityContext()
methods
-
setEntityContext and setSessionContext (1 messages)
- Posted by: kirubakaran damodaran
- Posted on: April 16 2003 23:56 EDT
Threaded Messages (1)
- setEntityContext and setSessionContext by David Jones on April 17 2003 12:57 EDT
-
setEntityContext and setSessionContext[ Go to top ]
- Posted by: David Jones
- Posted on: April 17 2003 12:57 EDT
- in response to kirubakaran damodaran
The SessionContext and EntityContext encapsulate the beans contract with the container.
When the EJB is created these methods are called and the context is passed in for the bean to store if it wishes.
From a pratical stand point the context allows you access to the users principle and role information, and the ability to set the rollback flag.
David