tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Fiol BonnĂ­n <fiol.bon...@terra.es>
Subject Re: Performance question JDBC vs Properties
Date Tue, 17 Feb 2004 07:40:21 GMT
I would write a "reload config" servlet. It will save you one JDBC 
access per request.

Antonio Fiol

Larraquy wrote:

>Hi all, I've got this doubt. My applicacion uses some "properties" files to
>config some events or constants, or whatever, but it's job basically is to
>map the users "click" on a JSP, to a servlet and define what class should
>take this event. So, every request comming to a JSP, will be a search in
>this file. This is for writing only 1 Servlet.
>
>For instance, if an user clicks "ShowClients" something like this should be
>written at the file. Where this class is called to do the job.
>
>ShowClients=com.jkt.proyect.clients.ShowClients
>
>Or "ShowProducts":
>
>ShowProducts=com.jkt.proyect.products.ShowProducts
>
>This file, should be as big as "use cases" in the system.
>
>Actually we've written 2000 lines.
>
>My problem, is that for reconfiguring this file, or adding lines to it, I've
>got to reload the application. As we are at deploying time, this happens
>quite often, so I've got to take users out of the system, and then, calling
>them to continue working (they are quiete few until next month).
>
>I'm thinking of sending to logic to a database, I mean configure this in a
>table.
>
>So if I've got 2000 records in this table, would it be much less performant
>that writing it in a file, as it is now working?
>
>Thanks in advance.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>  
>


Mime
View raw message