Is there a way to save data in a Java EE application without a database?

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?

+4
source share
5 answers

If I understand your use case correctly, this can be done with Infinispan, and in addition, this is one of the main ways to use Infinispan. Your application will not depend on any application server when using the built-in libraries, and Infinispan can create a cluster in this built-in mode.

, , , : Infinispan Operational mode

+1

, , , . Hazelcast, .

, ( ).

0

. , XML ?
.

0

, Oracle Coherence API

0

Try using Terracotta's Bigmemory, which provides in-memory caching and works great in a clustered world.

-1
source

All Articles