Craig Bishop · Sep 7, 2022

Access global variable on remote system

Hello All,

I have a class method on the DocRepo server that needs to query the data value of a global variable on the Edge server. 

I have looked at the documentation for 'Global Structure,' but I didn't find anything that helped.

Global Structure | Using Globals | InterSystems IRIS Data Platform 2022.1

I am able to access this global easily from the Edge server using the $Get function, but I need to access it from the DocRepo server.

Any suggestions would be greatly appreciated!



Product version: IRIS 2019.1
$ZV: Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2018.1.2 (Build 309_5_20976U)
0 244
Discussion (8)2
Log in or sign up to continue

Thanks for the suggestion. I'm reading up on this now.

If the thing you're working with is actually some sort of configuration data then this is probably a good approach. If not then building your own integration to transmit the data is probably better.

How do you connect to Edge Server? ECP? Some ODBC/JDBC access?  plain TCP ?

Hello Robert,

We don't currently connect to the edge server from the doc repo perspective, doc repo receives from the edge via SOAP. I was looking for a way to transmit this data over without having to create a new web service or soap call.

SOAP is quite specific and critical to data format and structure.
You might extend it, but then Edge Server is the active part and you depend on its regular "broadcast".
If Doc Server should be the active partner I'd rather suggest to use JDBC in Linux.
Your actual $get might be embedded as a Method projected as SQL Procedure that you call.
There exist examples to even execute COS commands by that approach:
see: ObjectScript over ODBC

nice for IRIS, not Caché, Ensemble