File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes ActionServlet instances Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ActionServlet instances" Watch "ActionServlet instances" New topic
Author

ActionServlet instances

Reema Patel
Ranch Hand

Joined: Jan 26, 2006
Posts: 169
Hello All,
I'm new to Struts development. I have a basic quest. Is there just one instance of the Struts ActionServlet that is shares across all requesting clients in ideal conditions?

I know one can have multiple controllers but that's nor recommended. SO in normal condition incase you are providing your own controller (by entending struts controller) how many instances are there in the JVM for that partucular controller servlet?

Thanks
Reema
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
I think, one instance per JVM or one instance per application if it is deployed on single server...

Reema Patel
Ranch Hand

Joined: Jan 26, 2006
Posts: 169
I have not read about this anywhere so that I take it for granted!
But I think it all makes sense to have only a single instance of the controller component per web app.

Anybody pls. correct me if I'm wrong.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ActionServlet instances