This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Spring 2.0 introduces custom scope definition for beans.
In our application, we have a scenario where a use-case starts processing from either of a Message-Driven POJO, a Quartz Job or a Web-Service POJO and subsequently covers few layers like transactional facade, BO and DAO. The request (invocation) is encapsulated in a value-object (DTO) which is then transferred to subsequent layers. This object is supposed to be living till the request processing goes on (till the invocation to subsequent layers returns back to originating artifact (MDP, Job or WS)).
My question is, can I create something like a 'Use-Case Request Processing Scope' to define the scope of request processing explained above? If yes, then with every new invocation, I would like to inject the (proxy of) value-object to the 'beans' representing initial layers of the application.