How to check if session area is active in Spring? for example, at startup, some classes need a User object, which is the scope of the session, than I return a mock User object.
the bean in question is declared using aop: scoped-proxy. How can I check if the session area is active?
the trick was to create a factory, get a proxy server with a proxy server from the factory, and run any method that requires an actual object and scope.
then catch a BeanCreationException to detect an inactive area.
spring 3, :
bean HTTP. - spring ApplicationContext.
, - spring ApplicationContext ( , XMLWebApplicationContext), beans , , spring , beans. , , .., bean, , .
, , , , - - , " ".
Source: https://habr.com/ru/post/1712863/More articles:mysql record not exceeding 16 384 - phpIs there a Java API or built-in function to solve annuity problems? - javaCreating hidden processes (the window is not visible) - cDoes anyone know the average response time for an HL7 clinical message? - hl7PopupMenu in Gtk # - c #How do I know if I work with the PAC or not? - .netWhy does Textpad ask if you want to use POSIX regex syntax? - windowsWiX installer and user actions - c #How to get current date and time in Yahoo Pipes? - datetimeHow to get reverse regular expression? - regexAll Articles