The Smart Stub example

This example shows how one can create a smart client stub to cache information returned from a server object.  This is useful to minimize the time it takes to service a request, particularly if processing time is lengthy. 

From this example, you will learn how to:

Directory Contents

Building this example

Typing make(vbmake on Windows) in the smart_stub subdirectory will build the following classes for the examples described above:

Compilation Errors and Warnings

You will see the following compilation errors when you type make(vbmake on Windows) in the smart_stub subdirectory or when you explicitly compile SmartAccountManager.java using JDK1.0.2: The above error occurs because the class that is being used by this example is not part of JDK1.0.2. The solution to this problem is to upgrade to JDK1.1.0 or higher.

Running this example

To run the examples, first make sure that the VisiBroker Smart Agent (osagent executable) is running on your network. Then start the Server using the command: Next, query the balance in a user's account using the command or



Return to the top-level examples page.