• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

two request from the same user

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I would like to understand how struts process two requests from the same user.

Would it be able that two requests (2 struts actions) from the same user were processed simultaneously by the Action controller?

I need to know this because those two actions are trying to access to a shared resource and I do not know if I should control the access to that resource.

Thank you in advance.
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As you generally know, web servers are multi-threaded. It wouldn't be much good if only one person could access a website at one time. Similarly, the same is true of requests. So, yes, synchronize access to objects that need to be exclusively used. This is a given.
reply
    Bookmark Topic Watch Topic
  • New Topic