Products
Distributed Transaction System Middleware
The example application presented here illustrates the power of DTS easy-to-use RPC-style programming interface. Both a traditional native language approach and an object-oriented approach are presented. Use the language, tools and architecture you prefer, with DTS the development is always easy and straightforward.
Programming examples

A very simple remote query task is implemented. We have a front-end (Client) application that uses DTS to make a procedure call to remote system named REMOTE (a DTS logical node name). Our back-end (Server) application (a DTS Handler subroutine) simply returns a "hello" message through DTS to the calling front-end. The front-end application then displays the received message on the user terminal. DTS transaction type 1 (inquiry) is used because we want the response data back in real time.

Both front-end and back-end modules of this application are listed in four different programming languages: C, PASCAL, FORTRAN and COBOL, using the DTS native YFIAPPC interface. Due to DTS platform-independent Application Programming Interface, the modules can be located on any of the supported DTS platforms. Slight modifications may be necessary because of language implementation differences between different architectures, especially on languages other than C.

The power of an object-oriented approach, using DTS message class library interface is demonstrated by the same example application (front-end only) written in Java language, for the DTSJAVA package. In Windows environments ultimate easiness of programming can also be achieved by using the DTS component interface. The example application front-end is also implemented here in Microsoft® Active Server Pages (ASP) scripting.

The example application in C
The example application in PASCAL
The example application in FORTRAN
The example application in COBOL

The example application in Java, using DTSJAVA
The example application in HTML ASP/VBScript

© Copyright 2000 Tascomm Engineering Oy Home  Company  Products  Services  Customers  News