• Post Reply Bookmark Topic Watch Topic
  • New Topic

Static methods and JSP

 
RAM NARASIMHAN
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are static methods in a JAVA object not thread safe in JAVA/JSP environment. Our Architect asked us to convert all the static methods to instance ones - the reason being they're not thread safe in JAVA/JSP/IPLANET environment
 
Bhupinder Dhillon
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If those methods are manipulating static variables then you need to synchronize those methods otherwise not. Bottom line.. they are as thread safe as you want them to be.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!