Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sessioncontext  RSS feed

 
thomas davis
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why sessioncontext is being used in enterprise bean?
Can I pass any variables or insertion query through passivate () method of session beanin order to save the information into database ?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SessionContext provides the bean to interact with the conrtainer. For e.g. it can get to know who the Caller is , the UserTransaction, EJBHome , the transaction status,TimerService (EJB 2.1 only)
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/ejb/EJBContext.html
[ August 08, 2003: Message edited by: Pradeep Bhat ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!