I'm currently working on a project where I need to externalize the HTTP Session and other objects (Such as JSF state, Controllers, etc). My Project is in full JEE using JSF on the web tier (plus PrimeFaces and some other libs). Running on Payara Server, using Docker at AWS.
My Controllers are fully Stateful and I need to keep this way. I research about how I can easily externalize the user session without changing much code and I found out about Spring Session. The problem is that I have zero experience with Spring and how to introduce it into my project and all I failed all my attempts so far.
I don't user Maven, and at this point is very unlikely that I can use it, since the project is too big to move, so I have to import all the libs manually. I just want to import the libs (Spring + Spring Session), configure Redis access and change as little code as possible. Can it be that easy?
My question is: what's the best approach to use Spring Session in my situation? Does anyone know a better / easier way to externalize JSF session to Redis?
Thank you.