Hi, I would like to initialize and share an object when my application deploy but I'm not sure on the best way to do it. The idea is to access something like ServletContext() and then initialize my object in it in a synchronized way. I know the ActionContext is ThreadLocal so If i put my object in it I don't think it will be accessible for every user of the site. So what is the best way to share data between action with struts 2 ?
Thanks ;)