[Logo]
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?
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 152 times.

All times above are in ranch (not your local) time.
The current ranch time is
May 26, 2018 19:33:29.