A Routine Call between two Cache installations
Hi Guys,
is the there a way that I can make a routine call from one cache to another?
I've a client that still on Cache 2008 and given that JSON is not much supported in V2008 we thinking of installing Cache 2014 in the same server Create a routine that handles JSON (in Cache2014), and then simply call in their current Cache 2008 just make a routine call of that is V2014?
thanks
Comments
Caché can call any OS command (if it has enough rights) by using $ZF(-1 (see also article https://community.intersystems.com/post/callexecute-exe-windows-objects…)
In the OS command script, you can use ccontrol to the other Caché instance (see article https://community.intersystems.com/post/starting-routine-windows-comman… as an example)
But i would prefer using Webservices to call a routine from one Caché instance the other : then you don't need to put the two Caché instances on the same server : see webservices doc https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KE…
Thanks
If you absolutely do not want to upgrade, you can take old json classes from 2014 (or 2017) and import them into Cache 2008.
The classes are:
- %ZEN.Auxiliary.jsonProvider
- %ZEN.Auxiliary.jsonSQLProvider
That said an upgrade would be a preferable solution.