java ee - Session sharing across WARs -
in our application have 2 different war files deployed in same tomcat. in our case storing attributes in session required both wars, should able access session of 1 context (one war ) other context (other war).
to achive have enabled cross context in tomcat , sharing session storing them in map in each context. approach became complex , cumbersome session management became hard. , if opt tomcat clustering approach failing.
so can 1 suggest improve way share session across multiple applications deployed in single tomcat or multiple tomcat nodes
you can create simple webservice store session related information.
like when 1 session created on login on app1, info stored on webservice held info till app1 logged out.
and same info accessible app2 till app1 session there.
webservice can simple rest api, contain info in json format.
session java-ee tomcat war
No comments:
Post a Comment