You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Luis Santos (JIRA)" <ji...@apache.org> on 2011/03/01 21:06:36 UTC

[jira] Created: (CAMEL-3741) Add new feature

Add new feature 
----------------

                 Key: CAMEL-3741
                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
             Project: Camel
          Issue Type: New Feature
    Affects Versions: 2.6.0, 2.7.0
            Reporter: Luis Santos
             Fix For: 2.7.0, 2.6.0
         Attachments: patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_trunk.txt

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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CAMEL-3741) Add new options to camel-jt400

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001424#comment-13001424 ] 

Claus Ibsen commented on CAMEL-3741:
------------------------------------

We need this new feature documented in the wiki page.
http://camel.apache.org/jt400

Luis do you mind helping out with that?
Maybe you can sketch up some documentation in a .txt file and attach to this JIRA?


> Add new options to camel-jt400
> ------------------------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0
>            Reporter: Luis Santos
>            Assignee: Willem Jiang
>              Labels: component, features, jt400
>             Fix For: 2.8.0, 3.0.0
>
>         Attachments: patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CAMEL-3741) Add new options to camel-jt400

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002482#comment-13002482 ] 

Claus Ibsen commented on CAMEL-3741:
------------------------------------

@Luis

Thanks for the documentation. I have updated the wiki.

> Add new options to camel-jt400
> ------------------------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0
>            Reporter: Luis Santos
>            Assignee: Willem Jiang
>              Labels: component, features, jt400
>             Fix For: 2.8.0, 3.0.0
>
>         Attachments: camel-jt400-documentation.rtf, patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_exception_handling_trunk.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (CAMEL-3741) Add new options to camel-jt400

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3741.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.8.0)
                       (was: 3.0.0)
                   2.7.0

Thanks for the patch: 1077837.

> Add new options to camel-jt400
> ------------------------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0
>            Reporter: Luis Santos
>            Assignee: Willem Jiang
>              Labels: component, features, jt400
>             Fix For: 2.7.0
>
>         Attachments: camel-jt400-documentation.rtf, patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_exception_handling_trunk.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (CAMEL-3741) Add new options to camel-jt400

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-3741:
-----------------------------------

    Assignee: Willem Jiang

> Add new options to camel-jt400
> ------------------------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0
>            Reporter: Luis Santos
>            Assignee: Willem Jiang
>              Labels: component, features, jt400
>             Fix For: 2.8.0, 3.0.0
>
>         Attachments: patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CAMEL-3741) Add new options to camel-jt400

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller updated CAMEL-3741:
------------------------------------

    Affects Version/s:     (was: 2.7.0)
        Fix Version/s:     (was: 2.7.0)
                           (was: 2.6.0)
                       3.0.0
                       2.8.0
              Summary: Add new options to camel-jt400  (was: Add new feature )

> Add new options to camel-jt400
> ------------------------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0
>            Reporter: Luis Santos
>              Labels: component, features, jt400
>             Fix For: 2.8.0, 3.0.0
>
>         Attachments: patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (CAMEL-3741) Add new options to camel-jt400

Posted by "Luis Santos (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002011#comment-13002011 ] 

Luis Santos commented on CAMEL-3741:
------------------------------------

@Willem Jiang  
I'm attaching a better excpetion handling when the execution fails
As i'm seeing this the path will only be applied to the trunk so only this patch is being submited now

@Claus Ibsen  
I'm attaching a reviewd documentation page for the camel-jt400 component








> Add new options to camel-jt400
> ------------------------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0
>            Reporter: Luis Santos
>            Assignee: Willem Jiang
>              Labels: component, features, jt400
>             Fix For: 2.8.0, 3.0.0
>
>         Attachments: patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CAMEL-3741) Add new options to camel-jt400

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001265#comment-13001265 ] 

Willem Jiang commented on CAMEL-3741:
-------------------------------------

Hi Luis,

Thanks for your contribution, I just applied you patch by fixing some check style issue and changing to use slf4j logger.
Here is one question for the Jt400PgmProducer that you new add.
When the pgmCall failed, do we need to throw an exception to fire the camel error handler?
I don't think it's a good idea that just print the message out.
 
{code}

        boolean result = pgmCall.run();

        if (LOG.isTraceEnabled()) {
            LOG.trace("Executed PGM '" + commandStr + "' in host '" + iSeries.getSystemName() + "'. Success?"
                     + result);
        }

        if (result) {
            handlePGMOutput(exchange, pgmCall, parameterList);
        } else {
            // TODO Do we need to throw an exception here
            handleMessages(pgmCall);
        }
{code}

Willem


> Add new options to camel-jt400
> ------------------------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0
>            Reporter: Luis Santos
>            Assignee: Willem Jiang
>              Labels: component, features, jt400
>             Fix For: 2.8.0, 3.0.0
>
>         Attachments: patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CAMEL-3741) Add new options to camel-jt400

Posted by "Luis Santos (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luis Santos updated CAMEL-3741:
-------------------------------

    Attachment: patch_camel-jt400_pgm_call_exception_handling_trunk.txt

> Add new options to camel-jt400
> ------------------------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0
>            Reporter: Luis Santos
>            Assignee: Willem Jiang
>              Labels: component, features, jt400
>             Fix For: 2.8.0, 3.0.0
>
>         Attachments: patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_exception_handling_trunk.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CAMEL-3741) Add new feature

Posted by "Luis Santos (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luis Santos updated CAMEL-3741:
-------------------------------

    Attachment: patch_camel-jt400_pgm_call_2.6.0.txt

patch to 2.6.0 tag

> Add new feature 
> ----------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0, 2.7.0
>            Reporter: Luis Santos
>              Labels: component, features, jt400
>             Fix For: 2.6.0, 2.7.0
>
>         Attachments: patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (CAMEL-3741) Add new options to camel-jt400

Posted by "Luis Santos (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002011#comment-13002011 ] 

Luis Santos edited comment on CAMEL-3741 at 3/3/11 3:07 PM:
------------------------------------------------------------

@Willem Jiang  
I'm attaching a better excpetion handling when the execution fails. You weere righ, i belive that in case the execution is not successfull (ie program crash/error) the messages should be encapsulated in a excption to camel.

As i'm seeing this the path will only be applied to the trunk so only this patch is being submited now, is this correct?

@Claus Ibsen  
I'm attaching a reviewd documentation page for the camel-jt400 component








      was (Author: luis.santos):
    @Willem Jiang  
I'm attaching a better excpetion handling when the execution fails
As i'm seeing this the path will only be applied to the trunk so only this patch is being submited now

@Claus Ibsen  
I'm attaching a reviewd documentation page for the camel-jt400 component







  
> Add new options to camel-jt400
> ------------------------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0
>            Reporter: Luis Santos
>            Assignee: Willem Jiang
>              Labels: component, features, jt400
>             Fix For: 2.8.0, 3.0.0
>
>         Attachments: patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_exception_handling_trunk.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CAMEL-3741) Add new feature

Posted by "Luis Santos (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luis Santos updated CAMEL-3741:
-------------------------------

    Attachment: patch_camel-jt400_pgm_call_trunk.txt

trunk patch

> Add new feature 
> ----------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0, 2.7.0
>            Reporter: Luis Santos
>              Labels: component, features, jt400
>             Fix For: 2.6.0, 2.7.0
>
>         Attachments: patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CAMEL-3741) Add new options to camel-jt400

Posted by "Luis Santos (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luis Santos updated CAMEL-3741:
-------------------------------

    Attachment: camel-jt400-documentation.rtf

Documentation page

> Add new options to camel-jt400
> ------------------------------
>
>                 Key: CAMEL-3741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3741
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.6.0
>            Reporter: Luis Santos
>            Assignee: Willem Jiang
>              Labels: component, features, jt400
>             Fix For: 2.8.0, 3.0.0
>
>         Attachments: camel-jt400-documentation.rtf, patch_camel-jt400_pgm_call_2.6.0.txt, patch_camel-jt400_pgm_call_exception_handling_trunk.txt, patch_camel-jt400_pgm_call_trunk.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira