Hi,
We are working with Java Actions, which need to work with many files (read only).
We have seen that it is not efficient to open the files for every user that executes this Java Action, instead, we would like to create a HashMap with all the files, cache it in memory and make it accessible for all the users (sessions), so the Java Actions only needs to get the files from memory (HashMap).
The idea is to create this HashMap as part of the After Startup microflow and then keep it in memory till the Application Server stops.
The problem is that I do not know how to create a global variable (java) in a Mendix project. What java file can I modify to create this global variable (HashMap)?
If I create a Java Action I only have access to the object that is passed to it, I cannot create variables that will be kept after the Java Actions finishes.
Any suggestions?