Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading/ writing static fields in a helper class

 
Diego Amicabile
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assume my EJB has an helper class, which reads and writes static fields.
Would that be wrong?

I think I know the answer, but I have been using static fields in my helper classes for a long time now and things always worked fine

Well, you live, you certify and learn
 
Ganeshji Marwaha
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from my exp. most of the times, it works great... coz, most of the container vendors today are very good at handling subtle issues like these... But the point is, that the spec does not mandate the container to handle writing of static fields... So, u might be writing components that arent portable...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic