Tier Aware Subroutines

LANSA

Tier Aware Subroutines
Example 132 - Rating: advanced
The Things that Make Up this ExampleTo Execute this Example

In elemental form the classic subroutine (no matter how interfaces to it are dressed up and renamed) remains one of the simplest and most powerful facilities available for code reuse. This example demonstrates one technique for creating tier aware "subroutines".

This form (VL_SAM132) acts as a simple interface to two tier aware subroutines which themselves demonstrate:
  • Some programming techniques that can be used in tier managed applications.
  • Use of the APPL (application) and DATA (database) tiers.
  • How the use of a tier management scheme can change the performance characteristics of an application.
The code shipped with this example is well commented.

The easiest way to understand all of the preceding points is to cut/paste/compile the examples and then combine execution of them with reading of the comments contained within them.

Keywords
TierManagement
Multi-TierRemote Procedure
DatabaseClient
Servern-Tier
SubroutinesExample 132