wanted to store object across requests and sessions. Is there an equivalent to servletcontext in AEM? | Community
Skip to main content
adobecq-venkat
Level 2
March 12, 2020

wanted to store object across requests and sessions. Is there an equivalent to servletcontext in AEM?

  • March 12, 2020
  • 1 reply
  • 4499 views

I tried to use servletcontext to store global data which can be used across components /requests/sessions.

The data is getting lost when used inside servlet, but when I used the Jspcontext in JSP, it worked.

I am looking for any API to hold the data as long as the instance is up.

I wanted to read data from JCR and made available to all the components so they dont have to read again.

 

Thanks for your help.

venkat

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

joerghoh
Adobe Employee
Adobe Employee
March 13, 2020

So you want to store data in the HTTP session of that user?

adobecq-venkat
Level 2
March 13, 2020
I wanted to read the data from JCR and make it available to all the components and Servlets so they dont have to read again.