This directory contains a set of simple tests and example programs for CORBA modules of JS.

    load.js    - simple initializes CORBA object
    call1.js   - invokes a method on a remote CORBA object
    enum.js   - tests reflection of enums 
    array.js   - tests reflection of arrays
    struct.js   - tests reflection of structures
    ior.js       - tests initialization of an object reference using stringified IOR
    url.js       - same as above but using URL resolver
    dynamic.js - more sophisticated example which shows how to reflect JS object into CORBA

What is needed to run examples:

    Java VM 1.1.3 or higher
    Visigenic Visibroker for Java 3.1
    (can be downloaded from http://www.visigenic.com/download)
    Osagent up and running (if you're on NT it's recommended to install it as a service)
    Rhino JS engine

Start the server:

    there's a test server under tests/server directory which is being used as a back end to run examples. 
    If you don't have classfiles - compile it first:
	    cd server
	    idl2java StockMarket.idl
	    cd DreamStocks
	    javac *.java
	    cd ..
	    java StockMarketServer.java

    Start IR server:

	    irep SomeName

    Load information into IR:

	    idl2ir -replace StockMarket.idl

    Start the server:

	    java StockMarketImpl

Run examples:

    you can run examples one-by-one using Shell:

    i.e.
    	java javax.javascript.examples.Shell dynamic.js



Enjoy,

Ruslan
