DynAny

The DynAny example illustrates some basic facilities associated with Dynamic Any's.  The Client application program will illustrate how to create and initialize a DynStruct type.  The Client will then create an any type from the DynStruct which can then be passed to the Server application program for evaluation.  The Server application will illustrate how to traverse, extract, and display the primitive constituents of the data value associated with an any at run-time.   It should be pointed out that the Server application was written such that it does not have any static information for the type of the any.


From this example, you will learn how to:

Directory Contents

Building this example

Typing make (or vbmake on Windows) in the DynAny subdirectory will cause the Printer.idl  to be run through the idl2java compiler. It will also build the following classes for the examples described above:

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 PrinterManager Server using the command: Next, display the AccountInfo value by typing:

Return to the top-level examples page.