NonStop Server for Java (NSJ) Tools Reference Pages (NSJ 2.0+)

Generated Constructors for Reply IPCs
For a reply IPC only, ddl2java generates a constructor that accepts a
TsmpGenericServerReply object as an argument. This constructor is used to
move the contents of the reply buffer from a TsmpGenericServerReply to the
reply IPC. For example:
TsmpGenericServerReply greply = new TsmpGenericServerReply();
...
RPEmployee_reply empReply = new RPEmployee_reply(greply);
Internationalization
For all PIC X and PIC N fields ddl2java generates code to encode and decode
Java strings in Unicode.
For "marshaling" (converting from Java strings), ddl2java generates code that
performs String.getBytes (String enc) to convert the string into a
byte array according to character encoding enc.
For "unmarshaling" (converting into Java strings), ddl2java generates code
that performs String (byte[] buffer, int offset, int len,
String enc) to construct a new string by converting len bytes of buffer
at offset using character encoding enc.
In the absence of the -e option to ddl2java, all PIC X and PIC N fields are
encoded with the default encoding of the platform in use, which is specified in the
file.encoding property. You should ensure that this property is set to a reasonable
value, such as ASCII.
The -e option specifies that the value of the coding property is to be used as the
default encoding for all PIC X and PIC N fields in the DDL. In addition, ddl2java
generates code to check for an encoding for each field.
If any fields differ from the default encoding property, you must set the properties for
those fields. ddl2java assumes that all members of an array, and all members of a
group-item, have the same encoding.
If coding refers to a property that does not exist, ddl2java throws a
TsmpRequestException or TsmpReplyException.
NSJ Tools Home Page
NonStop
TM
Server for Java
TM
Tools Reference Pages (426948-001)
Copyright © 2001, Compaq Computer Corporation. All rights reserved.