Forums Register Login
Singleton Java Class V/S Spring Singleton
I understand that

A Java program written as Singleton means 1 instance per JVM per class loader

Spring Singleton is 1 instance per Spring Container.

So, I was just wondering if is it possible to have two Spring Containers in a Spring MVC application? If yes, then how? And, if we have 2 containers does that mean 2 separate JVMs?

This thread has been viewed 220 times.

All times above are in ranch (not your local) time.
The current ranch time is
Oct 17, 2018 22:35:30.