All,
I have a question that folks here at JavaRanch may be familiar.
Using
Tomcat's Specifications and the MVC
pattern, is it better to use a single
servlet controller or several servlets, one for each action, for a large application, in terms of container overhead and/or maintenance?
I believe I am using a SingleThreadModel for my servlets.
e.g.
SingleControllerServlet?UpdateDB
SingleControllerServlet?RetrieveFromDB
OR
UpdateDBServlet
RetrieveFromDBServlet
In case 1, I send the function as part of the queryString while in case 2, each servlet performs its own function and has less logic processing to do.
Thank you.
cyberCipher
