Table of Contents Previous Next PDF


Extended Call Path Monitoring

Extended Call Path Monitoring
This chapter contains the following sections:
Overview
Extended call path monitoring enables you to set customized call path segments in Tuxedo service calls using the API tsambegin() and tsamend().
To enable extended call path monitoring, in the Oracle TSAM Plus console, select Enable Extended Monitoring in the call path tab of the Policy page. For more information, see Call Path Tab in Oracle TSAM Plus User Guide.
Using tsambegin()/tsamend() in Oracle Tuxedo Service
The following is an example that defines tsambegin()and tsamend() in the file toupper:
Listing 2‑1 Defining tsambegin() and tsamend()
#include <tsam_ext.h>
void
TOUPPER(TPSVCINFO *rqst)
{
...
long seq;
int db_rtn;
char * begin_props[] = { "sql=update..."};
char * end_props[1];
 
seq = tsambegin("DB", "Update", 1, begin_props, 0L);
userlog("seq=%ld", seq);
 
 
if(seq >= 0){
char str_dbrtn[100];
 
sprintf(str_dbrtn, "Dababase Return=%d", db_rtn);
end_props[0] = str_dbrtn;
tsamend(seq, sizeof(end_props)/sizeof(end_props[0]), end_props, 0L);
}
....
}
 
Run the following command to build the file toupper.c:
buildserver -s TOUPPER -o toupper -f toupper.c -f ${TUXDIR}/lib/tsam_ext.o
For more information about tsambegin()and tsamend(), see Call Path Monitoring APIs in Oracle TSAM Plus Reference Guide.
 

Copyright © 1994, 2017, Oracle and/or its affiliates. All rights reserved.