Multi-threaded context initialization with spring?

I have a traditional three-tier application with spring. One of my repositories takes> 3 minutes to initialize, so I thought of some sort of multi-threaded approach to speed up the whole process - I think that most services and controllers in my dependency tree can already be started, so only a few should wait for the last repository .

Is there any good practice approach?

+5
source share
1 answer

Use Spring Artist Abstraction. And if you are in the application server, then I suggest you use the application server manager (spring supports it). E.g. WebSphere Application Server and Weblogic support the registration of work managers in JNDI. Then you can pass the name jndi to spring. Task performers

+3
source

All Articles