addProp()  close()

Chapter 5: General Objects and Methods

begin()

Description

Begins a unit of work. Provides users with an explicit way to control units of work; however, users are responsible for committing or rolling back their own work.

Syntax

begin();

Return value

Always returns 1.

Examples

ot1.addProp(OT_PROP_TRANSPORT,”NNOT_TIL_OPEN_TSI”,”TestQueue”);
ot1.create(“putContext”);
ot1.open(“putTransport”);
data= “test message”;
ot1.setData(&Data);
ot1.begin();
ot1.put();
ot1.commit();
ot1.close();




Copyright © 2005. Sybase Inc. All rights reserved. close()

View this book as PDF