Karthik Shiraly wrote:It's useful when you want Spring to auto scan the classpath and find those configuration beans by itself, instead of explicitly registering them in code.
Henry Wong wrote:However, this won't work. The way that it is coded, there can only be one SharedRes instance -- it must be a singleton.
Henry Wong wrote:Your SharedRes class methods takes a SharedRes instance. I am assuming that this is done in order to support more than one SharedRes instance, meaning having more than one separate groups of producers and consumers working independently. Otherwise, why do this?
Campbell Ritchie wrote:
What are the changes you made? Please explain what you are doing.
Winston Gutkowski wrote:
Sounds about right, but you don't have to use:
in either case.