Loading a JDG cache from DB at startup

Solution Verified - Updated -

Issue

  • We have a DB database table that we want to read into a Data Grid cache at startup. We want the ID (key) of the cache to be a specific field of the table, and data from some other fields will be the data (values) in the cache, and we want all rows from the table in memory as part of startup.

Environment

  • Red Hat JBoss DataGrid (JDG)
    • 8.4.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content