I added a ServletContextListener to my struts 2 application, where I do a crud against a mysql database.
This ServletContextListener recover a bean from the applicationContext.xml, a manager to access to database, and store some data realted to the user who is logging if this data doesn't exits, so i read and check if this data exists.
I write this finder:
My problem is, when there is some data associated to a user, it does't recover anything, said that the list is empty, and overwrite the data with the default parameters.
When the application is in, after logging, there is no problem recovering the data.