Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7382C8EA for ; Mon, 7 May 2012 11:08:09 +0000 (UTC) Received: (qmail 27788 invoked by uid 500); 7 May 2012 11:08:09 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 27741 invoked by uid 500); 7 May 2012 11:08:09 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 27734 invoked by uid 99); 7 May 2012 11:08:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 11:08:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 11:08:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7CA02437A42 for ; Mon, 7 May 2012 11:07:48 +0000 (UTC) Date: Mon, 7 May 2012 11:07:48 +0000 (UTC) From: =?utf-8?Q?Jo=C3=A3o_Loureiro_=28JIRA=29?= To: issues@camel.apache.org Message-ID: <2106084038.33836.1336388868512.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1825325274.22760.1336066131101.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAMEL-5243) jt400: program call should support binary format MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-5243?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1326= 9522#comment-13269522 ]=20 Jo=C3=A3o Loureiro commented on CAMEL-5243: -------------------------------------- Sorry I forgot about the text description: (There is also the detail of the possibility "omitting" a parameter, which = is an AS/400 concept). The text under "Remote program call (Camel 2.7)" can= then be rephrased thus: This endpoint expects the input to be either a String array or byte[] array= (depending on format) and handles all the CCSID handling through the nativ= e jt400 library mechanisms. A parameter can be _omitted_ by passing null as= the value in its position (the remote program has to support it). After th= e program execution the endpoint returns either a String array or byte[] ar= ray with the values as they were returned by the program (the input only pa= rameters will contain the same data as the beginning of the invocation) This endpoint does not implement a provider endpoint! The "Remote program call example (Camel 2.7)" text remains valid because th= e default format is "text". =20 > jt400: program call should support binary format > ------------------------------------------------ > > Key: CAMEL-5243 > URL: https://issues.apache.org/jira/browse/CAMEL-5243 > Project: Camel > Issue Type: Improvement > Affects Versions: 2.9.2 > Environment: AS/400 system > Reporter: Jo=C3=A3o Loureiro > Assignee: Claus Ibsen > Labels: jt400 > Fix For: 2.10.0 > > Attachments: patch.txt > > > Data queue message exchange supports both text and binary formats and so = should the remote program call exchange. The specification is the same as t= he one for the data queue. > Additionally, this patch supports the concept of ommiting a parameter. Th= is is achieved by passing null as the parameter value. > Implementation note: > Since I don't know Camel's policy regarding API breaking, I opted to refe= r to Jt400DataQueueEndpoint.Format; but Format should now be a top-level cl= ass, since the concept is the same for data queues and programs. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira