I have several wars deployed at the pier. Initially, I had a singleton class, but the problem was that it was initialized in both wars. Therefore, I am trying to make singleton as enum. Is there any way to make JVM wide singleton?
You cannot impose it. Your singlets will be class specific, and since your applications can define multiple class loaders, you will be disappointed.
Source: https://habr.com/ru/post/1437362/More articles:iOS APNS - Notifications are still sent to devices after removing an application from storage - iosProblems painting canvas Android TextureView - androidNoClassDefFoundError in DirectionalViewPager using - androidHow to find out if there is another window using the same JSESSIONID? - javaNode.js Non-Blocking Nature - javascriptTypeScript IntelliSense does not work in VS2012 - visual-studio-2012Invalid read attempt when reader is closed - c #Close the pipe even if the subprocesses of the first command are still running in the background - bashHow to turn a structure into an array of bytes in C # - c #turn CORS on Iris Couch - couchdbAll Articles