This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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 .


 
 
subject: Pooling web service client objects
 
Similar Threads
Exception in thread "main" java.lang.NullPointerException (cannot connect to database)
Multiple Web Service Clients in Spring
unable to call AOP method
Compile Error: The prefix "util" for element "util:list" is not bound.
I get the bean for one class and for other it is null