Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 7 Using TIBCO Object Service Broker SDK (C/C++) : Overview

Overview
The TIBCO Object Service Broker SDK (C/C++) is an application programming interface (API) used by an application to:
The SDK (C/C++) is installed with TIBCO Object Service Broker.
Requirements
NLS
If you are connecting to an Execution Environment on z/OS, ensure that NLS is set up, with values in @NLS1 similar to the following example, according to your environment:

 
BROWSING TABLE : @NLS1
COMMAND ==>
SCROLL: P
KEY COMPTYPE COMPNAME LOCALE_CP
----------- ---------------- -------------------------------- -------------------
_ 1 SELF ENGL.IBM-037
_ 2 REMOTE ENGL.IBM-037
 
 
 
 
 
 
 
 
 
 
 
 
 
 
PFKEYS: 1=HELP 5=FIND NEXT 9=RECALL 18=EXCLUDE 19=SHOW 13=PRINT 3=END 14=EXPAND

 
How Does It Work?
The SDK (C/C++) supplies a dataIn/dataOut commarea mechanism for unformatted binary data exchange between an application and a TIBCO Object Service Broker rule. A rule called via the SDK (C/C++) can use all the TIBCO Object Service Broker facilities except the text-presentation DISPLAY statement. To facilitate commarea binary data exchange between an application and a rule, developers can use TIBCO Object Service Broker MAP tables to process data in the dataIn commarea and to return data back to the application through the dataOut commarea.
Remote Communication
The SDK (C/C++) is a remote interface that communicates with TIBCO Object Service Broker. TIBCO Object Service Broker on all platforms supports this interface in the same way. User applications can communicate with different TIBCO Object Service Broker installations on different platforms with no change to their code. They use the SDK (C/C++) whenever they want to control a session in another computer or in another work space on the same z/OS computer.
How Can It Be Used?
With the SDK (C/C++), you write an application to manage a TIBCO Object Service Broker session using a set of subroutines to an external program. Using the SDK (C/C++) functions, you can code in whichever programming language you prefer. To make the services of TIBCO Object Service Broker available to your program, you write specific routines that make use of the SDK (C/C++) and that exert complete control over TIBCO Object Service Broker sessions. Refer to Sample Application Using the SDK (C/C++).
Compiling and Linking
The SDK (C/C++) presents its interface to the client in an executable module (oscli.dll on Windows, and liboscli.so on Solaris) that exposes its entry points. To use the interface, an application links to the executable according to application platform and environment rules. On Windows, the oscli.lib import library is provided to link to oscli.dll. The format of the entry points is supplied in the oscli.h C header file.
Thread Safety
The SDK (C/C++) client is not thread safe at a session level. In other words, when two threads try to issue an SDK (C/C++) cliProc call on the same session area, the behavior of the second client is unpredictable.
Constants
To facilitate application development, oscli.h contains the following preprocessor definitions:
 
The maximum length of a rules end message. For more information, refer to GETENDMSG – Retrieve a Rules End Message and to the ENDMSG shareable tool.
See Also
TIBCO Object Service Broker Managing Data about MAP tables.
TIBCO Object Service Broker Programming in Rules about the rules language, writing rules, and transaction processing.
TIBCO Object Service Broker Parameters about starting sessions and session Execution Environment parameters.
TIBCO Object Service Broker Shareable Tools about the ENDMSG shareable tool.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved