This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pooling web service client objects

 
swaraj gupta
Ranch Hand
Posts: 182
C++ Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic