This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Strut 1.2 with thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strut 1.2 with thread" Watch "Strut 1.2 with thread" New topic
Author

Strut 1.2 with thread

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
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
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8843
    
    7

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
Don't get me started about those stupid light bulbs.
 
subject: Strut 1.2 with thread
 
Similar Threads
thread is logically equal to a context
Servlet Traps??
Doubt in Servlet threading
Doubt on Bean Scopes
How to write our own Marker Interface?