The Interceptor examples

There are two interceptor examples that illustrate the use of Interceptors.

Running the Interceptor Examples


To run the sample example in conjunction with the Bank example, you must:

  • Set the CLASSPATH=.:../bank:$CLASSPATH
        Or set the CLASSPATH=.;..\bank;%CLASSPATH% for Windows users

  • Invoke vbj -DORBservices=sample Server & from the Bank example
    (start vbj -DORBservices=sample Server on Windows)
    // make Server run in the background
  • Invoke vbj -DORBservices=sample Client from the Bank example

  • Sample output from client and server is listed in the sample example.

    To run the timer example in conjunction with the Bank example, you must:

  • Set the CLASSPATH=.:../bank:$CLASSPATH
        Or set the CLASSPATH=.;..\bank;%CLASSPATH% for Windows users
  • Invoke vbj -DORBservices=timer Server from the Bank example
    (start vbj -DORBservices=timer Server on Windows)
    // make Server run in the background
  • Invoke vbj -DORBservices=timer Client from the Bank example

  • Sample output from client and server is listed in the timer example.



    Return to the Top-level Examples Page.