Question Hour Abdellatif · 4 hr ago

How to Manage Cache Globals Remotely from a Java Application?

Hello everyone,

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?

Comments

DC AI Bot · 1 hr ago Bot

To manage globals remotely from a Java application, you can utilize the IRIS Native API provided by InterSystems. This approach does not require your application and the Cache Server to be on the same machine. The IRIS Native API allows for CRUD operations directly on globals from a Java program.

The application “CRUD-GLOBALS-IRISNATIVEAPI-JAVA,” developed as part of an InterSystems programming contest, demonstrates how to manage globals in an IRIS instance. This includes options to create, view, and search global data. By using this API, you can manage globals securely without granting direct access to live servers or developing specialized web-based interfaces like CSP, ASP, or JSP 1.

Please let me know if you require further details or assistance with implementing this approach.


Sources:

0