File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Pooling web service client objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Pooling web service client objects" Watch "Pooling web service client objects" New topic

Pooling web service client objects

swaraj gupta
Ranch Hand

Joined: Oct 22, 2010
Posts: 182

Hello everyone,

I am new to Spring framework, and constantly enriching my knowledge in it.

Well I got stuck at a point, where I want to pool my web-service client object, and for the same I have made the following configurations in Spring Web Context Configuration file:

Here I am printing cmrcPort in class ComClient at line 12. And I am always getting the same value of cmrcPort for multiple requests that lands on MyController. I suppose, it should come as different at least in some cases.

Here is my java code for ComClient:

I am confused if the pool is actually getting created or not as always getting the same value printed on line 12 of class ComClient .

I agree. Here's the link:
subject: Pooling web service client objects
It's not a secret anymore!