Hi Darren

did you configure your transports to use KeepAlive
<parameter name="PROTOCOL">HTTP/1.1</parameter>
?

In the meanwhile take a look at DBCP examples for impelementing database 
pooling characteristics
http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/doc/
http://commons.apache.org/dbcp/
Martin
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehiene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.


From: darren.gemo...@aquilent.com
To: java-user@axis.apache.org
Subject: Problems using Tomcat 7 connection pool to PostgreSQL with Axis2
Date: Fri, 21 Sep 2012 18:27:52 +0000









Hello, all.  I have a simple test program that opens a JDBC connection to a 
PostgreSQL database (using the Tomcat connection pool) and runs a simple query. 
 It uses connection/result closing code from the documentation.  The test 
program
 works fine standalone, but when I use it via an Axis2 web service, it seems to 
be causing abandoned connections.  After a few connections, it can’t connect 
because there are no connections available because they’re all abandoned.
 
I haven’t done anything fancy with the service, the WSDL, the transport, or 
anything...in poking around I see some things that maybe look related like 
REUSE_HTTP_CLIENT and I also ran across

this entry from StackOverflow 
(http://stackoverflow.com/questions/1093888/how-can-i-test-if-my-connection-pool-is-working-in-a-correct-way)
 that could be relevant, though not for the novice Axis2 user.
 
Any thoughts?  Any more info needed?
 
Thank you.
                                          

Reply via email to