Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Playground for EclipseLink Cache-Coherence

This is a simple playground to experiment with EclipseLink’s cache-coordination feature. In specific, I used it to test the JGroups-based integration on Websphere Liberty. The default database beeing used is PostgreSQL.

You can read more about the challenge to use it under Liberty on my blog.


Start the application:

$ git clone https://github.com/38leinaD/eclipselink-cache.git
$ cd eclipselink-cache/cars
$ ./gradlew build
$ cd ../cars-st
$ docker-compose up

Run some test-request against the application by running:

$ ./test.sh

Note that PostgreSQL by default does not log the SQL-queries executed via JDBC. Because seeing the queries that reach the database is helpful when testing a caching solution, you can enable it as follows after the Docker compose environment was started at least once before:

$ cp src/test/postgresql/postgresql.conf pgdata
$ docker-compose up

Now execute:

curl -X POST -d '{"model": "tesla"}' -H "Content-Type: application/json"  http://localhost:80/cars/resources/cars

You should see also some logging about the statement from the PostgreSQL container.