tpunadvertise — remove service from service registry
#include <atmi.h>
int tpunadvertise(char *svcname);
Link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm
Remove serivce in parameter svcname from Enduro/X application server service registry. Service previously must be advertised by server process by tpadvertise() or by service aliasing which was done during process startup with configuration in ndrxconfig.xml(5).
This function is available only for XATMI servers.
On success, tpunadvertise() return zero; on error, -1 is returned, with tperrno set to indicate the error.
Note that tpstrerror() for returns generic error message plus custom message with debug info from last call.
TPENOENT Service not advertised by current XATMI server process.
TPEOS Operating system error, that could insufficient memory or other error or problem with manipulating with underlaying queues. The Enduro/X logs (ndrxdebug.conf) for more infos.
TPESYSTEM Failed to updated ndrxd for changes in service registry.