File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 actions thread safe

 
sarada bokka
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Struts 2 actions are thread safe so for each request it creates a new object.

How come generating one more object does not impose a performance penalty in struts2?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33674
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Creating objects is an insignificant amount of work compare to what the actions do. This "performance penalty" would be negligible.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic