Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3741

Add new options to camel-jt400

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • None
    • Patch Available

    Description

      I've added a new feature to the existing camel-jt400 component to enable the remote program call of iSeries programs.
      This implementation was successfully tested with the jt400 library already included in the pom dependencies against real systems running the version V5R4 od the OS.

      The usage of this new feature is exactly the same of the DATQ feature except the path now has to point to a PGM file and there are 2 mandatory arguments: outputFieldsIdx and fieldsLength.

      outputFieldsIdx register which parameters of the program will be INPUT/OUTPUT (as oposed of only INPUT)
      fieldsLength: registers the mandatory parameters length

      Sample usage in a route (included in the test case)

      from("direct:a").to("jt400://user:password@host/QSYS.LIB/library.LIB/program.pgm?outputFieldsIdx=1,2&fieldsLength=4,512,2").to("mock:a");

      I'm including a patch to both 2.6.0 and trunk as of today.

      Please let me know if something is not OK.. I'm more than happy to make the adjustments.

      Attachments

        1. camel-jt400-documentation.rtf
          71 kB
          Luis Santos
        2. patch_camel-jt400_pgm_call_exception_handling_trunk.txt
          2 kB
          Luis Santos
        3. patch_camel-jt400_pgm_call_2.6.0.txt
          18 kB
          Luis Santos
        4. patch_camel-jt400_pgm_call_trunk.txt
          18 kB
          Luis Santos

        Activity

          People

            njiang Willem Jiang
            luis.santos Luis Santos
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: