Hi Luis:

Sounds as if you are sharing your database connection object amongst several
clients. Make sure your connection is made (and closed) in the doPost()/doGet()
methods (and not, for example in the init() method.. The init() is where you may
want to create a connection Pool - lots of discussion on this exist in the
archives..). A separate thread is created for each client's invocation of a
doGet()/doPost() so if your connection object is both *declared* and created
(and destroyed) in these methods, you should get proper results. If you are
already doing this, then post some code so we can maybe try and see what the
problem is.

Geeta

Luis Manuel Rojas Estrada wrote:

> Hi all!!
>
> I have a problem with some servlets.
>
> I have a servlet that makes  querys to Informix. When  I  invoke the servlet
> from several clients, I don't  get  the results that I need. If only one
> client invokes the servlet it works correctly, but when the servlet is
> access concurrently it doesn't works correctly. The servlet shows the
> results from a query that it  wasn't done  or shows the results from another
> query that it was made in other client. Sometimes the servlet doesn't shows
> anything and it seems that is processing, but it never stop to process the
> query.
>
> Can somebody  help me to resolve this problem?
>
> Thanks in advance  for your cooperation.
>
> Luis
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to