Lab 5.  Some extra examples of using CORBA IDL

Here is a collection of examples that use advanced  CORBA IDL features. They might be useful for your projects (passing data between the servlet and your CORBA object)

module helloWorld {
    struct myStruct {
        long a_long;
        string a_string;
    };

    interface GoodDay {
        myStruct helloStruct();
    };
};

module helloWorld {
    struct myStruct {
        long a_long;
        string a_string;
    };
    typedef sequence <myStruct> mySeq;

    interface GoodDay {
        mySeq helloStruct();
    };
};

module seqOfComplexTest {
    struct BasicStruct {
        long longVal;
        string stringVal;
    };
    typedef sequence<BasicStruct> BasicStructSeq;

    interface SeqOfComplexTest {
        long testSeqOfComplex(
            in BasicStructSeq inBasicStructSeq,
            inout BasicStructSeq inoutBasicStructSeq,
            out BasicStructSeq outBasicStructSeq);
    };
};

module primativeAnyTest { 

  interface pat {
    long testPrimativeAny(
        in any inPrimativeAny,
        inout any inoutPrimativeAny,
        out any outPrimativeAny);
    };
};