Hello,
I am writing an MVC application accessing an Oracle database. I am using a
servlet as controller, JSP only for presentation (view) and EJBs for
accessing data.
I have seen that even with just a few records in the database the
performance of the application is really good. So maybe it is a good idea
using EJBs even for small applications. In this way you will not have to
rewrite code if your application or data grow and it is already scalable.
Somebody asked before about when to re-query the database. Of course we need
to re-query the database every time and, as expected, the response times are
very short after the first request. For example, the first time I do a query
took 140 milliseconds, the next times it took 50, 40, 40, 40, etc.
Of course you also get the benefits of MVC like cleanest separation of
presentation, control and data.
Please let me know if you have any comments,
Benjamin
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets