Home

 

Exchanging data between applications

 

The MQAI can also be used to exchange data between applications. The application data is sent in PCF format and packed and unpacked by the MQAI. If your message data consists of integers and character strings, we can use the MQAI to take advantage of WebSphere MQ built-in data conversion for PCF data. This avoids the need to write data-conversion exits. To exchange data, the sender must first create the message and send it to the receiving application. Then, the receiver must read the message and extract the data. This can be done in two ways:

  1. Converting bags and buffers, that is, using the mqBagToBuffer and mqBufferToBag calls.

  2. Putting and getting bags, that is, using the mqPutBag and mqGetBag calls to send and receive PCF messages.

Both of these options are described in this topic.

We cannot convert a bag containing nested bags into a message.

 

Parent topic:

Message Queuing Administration Interface


pc15710_


 

Home