aspose file tools
The moose likes Web Services and the fly likes soap-connection pooling Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "soap-connection pooling" Watch "soap-connection pooling" New topic
Author

soap-connection pooling

b jr
Greenhorn

Joined: Apr 03, 2006
Posts: 1
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

Joined: Aug 19, 2005
Posts: 2906
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.


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: soap-connection pooling
 
Similar Threads
Maximum Open Cursors exceeded... URGENT!!!
jbossesb performance
connect to a SOAP webservice using SSL
transfer unserilaized objects as SOAP response
https