beautypg.com

HP NonStop G-Series User Manual

Page 74

background image

Define the input buffer type and output buffer type as CARRAY for the ECHO service.

2.

Define the ECHO service with only one parameter named CARRAY that is both an input and output parameter.

3.

tryOnCARRAY.java Client Code

Example 6-3

illustrates how Jolt works with a service whose buffer type is CARRAY. Since Jolt does not look into the CARRAY data

stream, it is the programmer's responsibility to have the matching data format between the Jolt client and the CARRAY service. The
following example assumes that a session object was already instantiated.

Example 6-3. Use of the CARRAY buffer type (tryOnCARRAY.java)

/* Copyright 1996 BEA Systems, Inc. All Rights Reserved */

/* This code fragment illustrates how Jolt works with a service
* whose buffer type is CARRAY.
*/