Programming Guide



sm_mts_CreateInstance

Creates an object under MTS control

int sm_mts_CreateInstance(char *name);

name
Name of object to be created.

Environment

MTS

Scope

Server

Returns

Description

sm_mts_CreateInstance can be used in place of sm_obj_create to create an object that inherits the transaction context from the calling service object.

For more details see CreateInstance method under IObjectContextMethods in the MTS documentation.

Note that this function requires an object context and therefore cannot be used in the constructor of a service component.