This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

soap-connection pooling

 
b jr
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I m new to webservices. I m accesing a webservice by manually coding the client (soap connections). How do I make sure that the connections are not created for each transaction? Is there a client side setup to make sure that the soap connections are pooled or reused?

// Create the connection

SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();

SOAPConnection conn = scf.createConnection();


thanks
-bn
 
Peer Reynders
Bartender
Posts: 2939
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi "b jr",

Welcome to the JavaRanch. There aren't many rules around here, however adherence to the JavaRanch Naming Policy is one of them. The display name b jr does not comply with that policy. Please adjust your display name. Your cooperation is appreciated.
 
Peer Reynders
Bartender
Posts: 2939
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web services use HTTP as their transport. HTTP is a connectionless protocol. The web service client sends a SOAP request inside of an HTTP request and gets its SOAP response within the HTTP response. So there are no connections to pool.
Transactions between the web service client and web service can only be coordinated through additional protocols like WS-Transaction, support of which is likely limited to the commercial super-platforms (IBM Websphere, BEA Weblogic, Oracle Application Server, etc.).
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic