To install M/Wire on Caché Systems:
If you downloaded the M/Wire & M/DB kit from
Github, you will
you will find 1 file that is for use with Caché:
- Run $system.OBJ.Load(mdbPath) to install the routines that are
contained in this file into the namespace of your choice (where mdbPath is the
path where you saved the /cache/mdb.xml file).
- Amongst the routines it installed, you'll find the two M/Wire routines:
- Start the M/Wire Daemon process as a jobbed process:
You should now be able to connect M/Wire clients to port 6330 and access the Caché
database via the M/Wire protocol.
You can run instances of the M/Wire service in as many
namespaces as you wish, but each instance must be configured to use a unique TCP port. By default,
the M/Wire protocol uses port 6330. To change the port, simply edit the line
port+1 in the routine zmwireDaemon.
Note: M/Wire maintains a global named ^zmwire for configuration, authentication etc.
This global is not accessible via M/Wire's commands.