mardi 3 février 2015

Releasing connection: Connection can be kept alive indefinitely in tomcat while sending request from one from to another

I am using 2 forms in my application. From my first form I am taking form data to servlet class and from this servlet by passing url of second from I am redirecting to my second form.


I am using this in my code


response.sendRedirect("[next form url]");


My application is web application written in java. I have deployed my application in tomcat running locally.Everything is fine till here.I am getting response as excepted.


But,Problem is when I am deploying my application on tomcat running on AWS machine. It is able to fetch data from form1 to servlet and redirect to next form say "form2". But after the it is closing connection giving this message .


015-02-03 08:06:01 DEBUG BasicClientConnectionManager:196 - Releasing connection org.apache.http.impl.conn.ManagedClientConnectionImpl@1a419e99 2015-02-03 08:06:01 DEBUG BasicClientConnectionManager:221 - Connection can be kept alive indefinitely


and not excepting anydata from second "form2". May I know the reson and how to solve this.





Aucun commentaire:

Enregistrer un commentaire