Compaq Reliable Transaction Router Application Programming Interfaces, RTR Browser Interface

Page 56

Application Programming Interfaces

Figure 4–1 RTR Browser Interface

Sample C++ client Example of object creation in an RTR client program. code

//

//Create a Transaction Controller to receive incoming messages

//and events from a client.

//

RTRClientTransactionController *pTransaction = new RTRClientTransactionController();

//

//Create an RTRData object to hold an ASCII message for the server.

RTRData *pMessage1 = new RTRData("You are pretty easy to use!!!");

//Send the Server a message

//

sStatus = pTransaction->SendApplicationMessage(pMessage1); ASSERT(RTR_STS_OK == sStatus);

//

//Since we have successfully finished our work, tell RTR we accept the

//transaction.

//

pTransaction->AcceptTransaction();

4–8RTR Interfaces

Image 56
Contents Reliable Transaction Router Getting Started Page Contents Reliability Features Figures Page Document Structure PrefacePurpose of this Document Related Documentation For all usersReading Path Readers Comments= Tutorial System Manager Application ProgrammerIf V2 to Introduction Reliable Transaction RouterRTR Continuous Computing Concepts RTR Continuous Computing ConceptsRTR Terminology RTR TerminologyClient Symbol Server Symbol Roles Symbols Components in the RTR Environment Nontransactional messaging Transaction ID Controller Business Logic Odbc Model Database ServerApplication Presentation PC Browser RTR FrontendBrowser Journal11 RTR Deployed on Three Nodes 12 Standby Server Configuration 13 Transactional Shadowing Configuration RTR Server Types RTR Server TypesStandby server Standby in a cluster 15 Standby Servers 16 Shadow Servers 17 Concurrent Servers Server1 Server2 Server3 Server4Transaction Partition a19 Bank Partitioning Example Standby Server Configurations Anonymous clients Tunnel RTR Networking Capabilities RTR Networking CapabilitiesPage Architectural Concepts Three-Layer ModelThree-Layer Model Three Layer ModelRTR Facilities Bridge the Gap BroadcastsFlexibility and Growth RTR Facilities Bridge the GapTransaction Integrity Flexibility and GrowthPartitioned Data Model Partitioned Data ModelObject-Oriented Programming Object-Oriented Programming Partitioned Data ModelObjects Functional and Object-Oriented Programming ComparedMessages Class Relationships Example 2-1 Objects-Defined SamplePolymorphism Object Implementation Benefits XA Support XA SupportReliability Features ServersFailover and Recovery Failover and RecoveryRecovery Scenarios Backend Recovery Router Recovery Frontend Recovery Recovery ScenariosPage RTR Interfaces RTR Management Station RTR Management Station RTR Create Facility DESIGN/ALLROLES=NODEA RTR RTRRECEIVEMESSAGE/TIME=0 RTR RTRSTARTTX/CHAN=C Application Programming Interfaces InterfaceApplication Programming Interfaces RTR Browser InterfaceRTR C Example of an open channel call in an RTR client program RTR Environment RTR System Management EnvironmentRTR System Management Environment RtrcomservRTR System Management Environment Management Station Running Browser SoftwareMonitoring RTR RTR Runtime Environment Optional External Applet Not Running RTR Runtime EnvironmentClient Application Whats Next? Whats Next?Page Glossary Branch BroadcastCallout server ChannelCommon classes Concurrent serverData marshalling Data objectFault tolerant EndianEvent Event drivenFrontend InquorateJournal Key rangeMessage Message handlerMultichannel MultithreadedPrimary ProcessProperties Property classesRollback RouterRTR configuration RTR environmentShadow StandbyTransaction Transaction controllerTransactional shadowing Two-phase commitTransactional message Index Index-1Index-2