Programming Guide



sm_tp_exec

Executes a middleware-related JPL command in JetNet and TUXEDO applications

int sm_tp_exec(char *command-stream);

command-stream
A string that contains a middleware-related JPL command. Enclose the command string in quotation marks.

Environment

JetNet, TUXEDO

Returns

Description

sm_tp_exec executes the specified middleware API-related JPL command. Table 5-22 shows the JPL commands that you can invoke from this function. For more information about a command, refer to its description in this manual.

Table 5-22 Middleware API Commands

advertise

log

unadvertise

broadcast

notify

unload_data

client_exit

post

unsubscribe

client_init

service_call

wait

dequeue

service_cancel

xa_begin

enqueue

service_forward

xa_commit

jif_check

service_return

xa_end

jif_read

subscribe

xa_rollback

Example

int severity;

severity = sm_tp_exec
("service_call \"WITHDRAWAL\" ({account_id, amount},
{message, account_bal})");