Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SRV.7.3 Session Scope

 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SRV.7.3 Session Scope says that :

HttpSession objects must be scoped at the application (or servlet context) level.

Page 267,Q7 (c) of HFSJ says that Attributes bound into a session ares available to other servlet that belongs to same servletcontext.

Does it mean that any servlet in the context which does not have access the the session variable can access the session attribute.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think no. Only the servlets participates in the session ( request processing) have access to session attributes. All the requests in a session are processed in one servletcontext only.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic