Overview of the MQeFields container structure
MQeFields is a container data structure widely used in MQe. You can put
various types of data into the container. It is particularly useful for representing
data that needs to be transported, such as messages. The following code creates
an MQeFields structure:
- Java™ code
-
/* create an MQeFields object */
MQeFields fields = new MQeFields( );
- C code
-
MQeFieldsHndl hFields;
rc = mqeFields_new(&exceptBlock, &hFields);
MQeFields contains a collection of orderless fields. Each field
consists of a triplet of entry name, entry value, and entry value type.
MQeFields forms
the basis of all MQe messages.
Use the entity name to retrieve and update values. It is good practice
to keep names short, because the names are included with the data when the MQeFields item
is transmitted.
The name must:
- Be at least 1 character long
- Conform to the ASCII character set (characters with values 20 < value <
128)
- Exclude any of the characters { } [ ] # ( ) : ; , ' " =
- Be unique within MQeFields