• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Doubt

 
lakshman kumaran
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
3 team members we are working in different module but we are calling the same struts framework (struts 1.1) at the same time . i dont know how many instances will be created . Can any body tell me .


Thanks in advance
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
lakshman kumaran wrote:Hi,
3 team members we are working in different module but we are calling the same struts framework (struts 1.1) at the same time . i dont know how many instances will be created . Can any body tell me .


Thanks in advance


What 'instance' do you mean?
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Source Struts 1.x documentation : Action

Actions must be programmed in a thread-safe manner, because the controller will share the same instance for multiple simultaneous requests. This means you should design with the following items in mind:

Instance and static variables MUST NOT be used to store information related to the state of a particular request. They MAY be used to share global resources across requests for the same action.
Access to other resources (JavaBeans, session variables, etc.) MUST be synchronized if those resources require protection. (Generally, however, resource classes should be designed to provide their own protection where necessary.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic