Hi,
Is it possible to pool HttpConnections as we pool Database Connections.
I created a pool of 5 HttpConnection Objects. It works fine for the first 5 times(ITs creating a new objects). 6th Time the pool is called it will try to give an already used HttpConnection. When i try to Post Data to this connection i get an error.
java.net.ProtocolException: Cannot write output after reading input.
Am i missing something ??
Murugesh
Discussions
Web tier: servlets, JSP, Web frameworks: Pooling Http Connections - java.net.ProtocolException: Cannot wr
-
Pooling Http Connections - java.net.ProtocolException: Cannot wr (2 messages)
- Posted by: murugesh ramachandran
- Posted on: July 11 2002 19:53 EDT
Threaded Messages (2)
- Pooling Http Connections - java.net.ProtocolException: Cannot wr by Klaas van der Ploeg on July 15 2002 04:20 EDT
- Pooling Http Connections - java.net.ProtocolException: Cannot wr by Purva Agr on July 27 2010 06:11 EDT
-
Pooling Http Connections - java.net.ProtocolException: Cannot wr[ Go to top ]
- Posted by: Klaas van der Ploeg
- Posted on: July 15 2002 04:20 EDT
- in response to murugesh ramachandran
Are you using the correct http-headers? (Connection: keep-alive, etc...) Normally, when a request is made, the connection is closed by the webserver automatically.
Regards. -
Pooling Http Connections - java.net.ProtocolException: Cannot wr[ Go to top ]
- Posted by: Purva Agr
- Posted on: July 27 2010 06:11 EDT
- in response to murugesh ramachandran
Have u got any solution for this problem? Even i want to do the same thing. hw r u creating http connection pooling and how r u managing this.
Thanks,