• Post Reply Bookmark Topic Watch Topic
  • New Topic

Context attributes thread safe or not?  RSS feed

 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am still confused about this.Some sites say since all requests can access them,they are not thread safe.Some sites say,since they can't be changed when the aplication is up,they are thread safe.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65898
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aman thind wrote:.. since they can't be changed when the aplication is up ...


I'd check the veracity of this claim.
 
Arie Prastowo
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you cannot change context init parameter. (thread safe)
but you can change context attribute (not thread safe)
 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arie Prastowo wrote:you cannot change context init parameter. (thread safe)
but you can change context attribute (not thread safe)


Thanks Arie
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!