I have a Spring web application with singleton services. There are also some singleton variables, such as a map with session data for all authenticated users, and so on. Everything works well on one server, but how to distribute this system between multiple servers? The system runs under Tomcat.
Thanks in advance!
Terracotta supports Spring and provides only one singleton bean among all instances of the Terracotta cluster.
All you have to do is enable Terracotta and declaratively add singleton beans to the cluster.
, -.
Tomcat, beans ?
, . Google Singleton Detector. , java- . , , .
, . .
Source: https://habr.com/ru/post/1751517/More articles:How to get started with Blackberry programming in J2ME? - blackberryJBoss table assignment - jboss5.x.NET thread interruption - c #Converting Java {String, String} [] to Map - javaΡΠ°Π·Π½ΠΈΡΠ° ΠΌΠ΅ΠΆΠ΄Ρ ΡΡΠ°ΡΠΈΡΠ΅ΡΠΊΠΈΠΌΠΈ ΠΈ Π½ΠΎΡΠΌΠ°Π»ΡΠ½ΡΠΌΠΈ java-Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠ°ΠΌΠΈ Π² ΡΠ°ΠΉΠ»Π΅ android make - androidShortcut for testing PHP code - pythonIn a Tomcat cluster, how to share beans in an application? - javaHow to crop html text and maintain format in PHP - phpHow to check if a unique array is in PHP? - arraysThe maximum length of the elements Div and Span - htmlAll Articles