Question Hour Abdellatif · 3 hr ago

How can I manage globals directly from a remote Java application in Cache (2016.1.1) without relying on cacheextreme.jar or requiring the application and Cache Server to run on the same machine?

I’m trying to find a way to manage globals from our Java application. We have two separate features:

  • Managing tables normally using SQL

  • Managing globals, since some globals exist without class or table definitions

Cache version : Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2016.1.1 (Build 108U_SU), Thu Jul 7 2016 09:39:04 EDT

I tried to retrieve the globals tree, update node values, and append nodes using SQL by calling stored procedures, but I couldn’t find any procedures for adding, updating, or deleting nodes.

I also tried using cacheextreme.jar to access the globals API directly. However, I noticed that this requires the Java application and the Cache Server to run on the same machine, since Java relies on liblcbjni.so to manage globals.

In our case, this is not possible because we deploy our Java application using Docker, while the Cache Server is already running on a separate server within our VPN network.

Is there a better way to manage globals directly from our Java application?

Product version: Caché 2018.1