It's not a secret anymore!*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Pooling web service client objects" Watch "Pooling web service client objects" New topic
Author

Pooling web service client objects

swaraj gupta
Ranch Hand

Joined: Oct 22, 2010
Posts: 181

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 .


 
wood burning stoves
 
subject: Pooling web service client objects