X hits on this document

324 views

0 shares

0 downloads

0 comments

93 / 120

  • 6)

    Write a small C/C++ JNI program Java2CblXmlBridge.cpp which exports a method “Java2SmplCalc” which:

    • a)

      Invokes XML2CALC.cbl (see Step 7), passing the XML document received from JSimpleCalculator.java.

    • b)

      Returns the XML document generated by XML2CALC.cbl (see Step 7) on return from SMPLCALC.cbl to JSimpleCalculator.java.

  • 7)

    Write a COBOL program XML2CALC.cbl which:

    • a)

      Marshalls XML received from the Java2CblXmlBridge.cpp, based on the XML Schema created in Step 2, into SMPLCALC-INTERFACE.

    • b)

      Invokes SMPLCALC.cbl, passing SMPLCALC-INTERFACE by reference.

    • c)

      Marshalls SMPLCALC-INTERFACE back to XML before returning to Java2CblXmlBridge.cpp.

  • 8)

    Compile XML2CALC.cbl and link it with the machine/object code for SMPLCALC.cbl (SMPLCALC.obj).

    • a)

      To simulate a situation where only partial source code for an application is available, do not recompile SMPLCALC.cbl; use the object file (machine code) that comes with this exercise instead.

  • 9)

    Create a DLL that can be loaded an used by JSimpleCalculator.java by compiling and linking Java2CblXmlBridge.cpp with the object code for XML2CALC.cbl.

  • 10)

    Update JSimpleCalculator.java to use the XJC-generated marshalling code to send/receive XML through the JNI method defined in Step 8 and display the results of the computations performed downstream by SMPLCALC.cbl.

85

Document info
Document views324
Page views325
Page last viewedSun Dec 04 19:38:48 UTC 2016
Pages120
Paragraphs2913
Words25794

Comments