Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFS page274, question7

 
Jessica White
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer C is correct according to the book:
"Attributes bound into a session are available to any other servlet that belongs to the same ServletContext"

I have some doubt on this statement. There is one ServletContext per web app per JVM. So, "any other servlet that belongs to the same ServletContext" would mean all servlets in the same web app. It does not feel right all servlets have access to attributes bound to a particular session, does it? I feel it should be all servlets who participate in the same session would have access to attributes bound in that particular session.

Can anybody clear it up for me?
Thanks.
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are absolutely right Jessica!

see this thread

cheers,
Kathy
 
Jessica White
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kathy, that definitely clear it up!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic