Referencing Objects in a JDG cache

Solution Verified - Updated -

Issue

  • Is it possible to have a reference to a cached object outside the cache and have it synchronized with the cluster?
  • Is there a way to reference the last version of an object in a DataGrid cache?
    Lets assume that on node1 the object for "A" is retrieved from the cache and stored as referece, is it possible to see updates which are made on node2?
  • Is there a problem if I modify Objects which I read from a JDG cache?
  • Why should I prefer imutable objects for caching

Environment

  • Red Hat JBoss Data Grid (JDG)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.