Programming Guide



sm_tp_get_tux_callid

Returns the Tuxedo identifier for a service call

int sm_tp_get_tux_callid(char *callid);

callid
Tuxedo service call identifier, which is set in the tp_return property immediately after the service request is made.

Environment

Tuxedo

Returns

Description

sm_tp_get_tux_callid gets the Tuxedo identifier for the specified service call. Use this identifier in order to make direct calls to Tuxedo API functions.

Example

char *callid;
int tux_id;

callid = sm_prop_get_str(sm_prop_id("@app"),\
PR_TP_THIS_CALL);
if ((callid != NULL) && (strlen(callid) > 0))
{

tux_id = sm_tp_get_tux_callid(callid);
/* Make call to TUXEDO API using tux_id... */
...
}