• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

threadsafe objects

 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we declare servletcontext and session objects inside the mothod(like doGet or doPost) then are they threadsafe for being local variables?

Thanks,
Geeta
 
Chinmaya Chowdary
Ranch Hand
Posts: 432
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are not thread safe.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic