• 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

Strut 1.2 with thread

 
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I deployed a strut1.2 based application in Tomcat server. Whenever a request come into server then major part are like below

1) Invoke servlet service method
2) Then action servlet will be called
3) Then action class will be called
4) Whatever the java business class(not singleton) written in action's execute method will be called.

main feature of Servlet is multithreading


If many user access the same java business class at same time. Then server multithreading servlet means action servlet also multithreaded ,then action class also multithreaded ,then action class multithreaded ,then java business class also multithreaded?

please tell my understanding is correct or direct in right way
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Action classes can be accessed by multiple threads at the same time. Have a look at the Action Class Design Guidelines.
This does not necessarily mean that business logic classes would need to be accessed by multiple threads. For example, an action class could create unique instances of business logic classes to handle each request.
 
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic