open()  rollback()

Chapter 5: General Objects and Methods

put()

Description

Puts a message into a transport.

Syntax

put();

Return value

Integer. Returns 1 for success, and 0 for failure.

Examples

Example 57

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. rollback()

View this book as PDF