This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Persistent Connection : Sping-ws Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Persistent Connection : Sping-ws Client" Watch "Persistent Connection : Sping-ws Client" New topic

Persistent Connection : Sping-ws Client

Samuel Jason

Joined: Jun 26, 2011
Posts: 10
Hello Friends,

I am using a spring-ws client to invoke a web service in two way ssl mode. I need to make sure that I don't end up creating a new connection everytime - instead I re-use connections.
I did some re-search and found that by default HTTP 1.1 always makes persistent http(s) connections. Is that true?

Do I need any piece of code in my client to ensure connections are persistent? How can I check if the connections are persistent or if a new connection is being created vereytime I send a new request ?

Below is my sping context xml:
It is sorta covered in the JavaRanch Style Guide.
subject: Persistent Connection : Sping-ws Client
Similar Threads
The prefix "oxm" for element "oxm:jaxb2-marshaller" is not bound
How to generate wsdl with spring ws
Spring-ws client with Jax-ws web service
XML name space error in Spring data JPA hibernate applicationContext.xml
Compile Error: The prefix "util" for element "util:list" is not bound.