Did you know that a Java EE-compatible way to store data (for example, a pair of key-value pairs) in a Java EE application without using a database? The solution should be used in a cluster. I know about the concepts of data grids (e.g. Infinispan in JBoss), but I would prefer a solution in which the application is independent of a specific application server (e.g. JCache would be great, but as I understand it, it can only be used as a local cache with Infinispan, not as a distributed cache).
So, is it possible, for example, to somehow save data from CDI (perhaps in the context of @ApplicationScoped)? If so, could you describe how?
EDIT: Thanks for all your answers. All of them right now recommend me to use a certain framework. But is there no way to use only the Java EE stack. like this?
source
share