[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?
Your mother was a hamster and your father was a tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA


This thread has been viewed 184 times.

All times above are in ranch (not your local) time.
The current ranch time is
Aug 17, 2018 02:06:23.