|
From: Rajeev K. <Ra...@cu...> - 2003-10-02 20:06:30
|
What is the best way to wire business objects to the web handlers? I = want to keep a shared instance of the handlers for my web requests. But = each request must work with a new instance of a business object. If I = set a property for the "singleton" handler to a business object, then = won't it always fetch the same instance (of business object) , no matter = what I specify for "singleton" attribute of the business object in the = application context? I am thinking of using an intermediary like a = business object factory, which will ensure that I get a new instance of = the business object every time, and not specify the business object in = the application context. Is there a better way of dealing with it in = Spring? Rajeev Kaul Customer Care, Inc. 925 277 0696 |