Skip to main content

MQ Series Adaptor

Spanish

Introduction

This adaptor is used to connect with a MQ console to be able to work with a huge amount of data. MQ queues are data structure that follow the FIFO (First in, First out) philosophy, first message in fisrt out.

Configuration

In the initialization process, it is necessary to provide the information to connect to the queue. This is the information that the adapter needs:

Initialization Parameters

  • Queue name: Namename of the queue to connect.
  • Queue manager: Queuequeue manager name.
  • Channel name: Channelchannel name.
  • Host: Ip address of the queue console.
  • Port: Portport for the IP address of the queue console.
  • User: Usernameusername to access the MQ console.
  • Password: Passwordpassword to access the MQ console.
  • Message selector: Optionoption to choose a specific message.
  • Queue type: Typetype of queue to be connected. For example: Sender (Receives messages) or Receiver (Sends messages).

Functions

  • addConsumer: Addsadds a new consumer to the queue.
  • commit: Confirmationconfirmation of a temporary change to permanent.
  • connect: Attemptsattempts to connect to the specified queue. Returns true if it succeeds, and returns false or error if it fails.No parameters are required since it uses the adapter's parameters.
  • disconnect: Performsperforms the disconnection of the queue. Returns true if successful or false otherwise. No parameters are required.
  • getNumMessages: Onlyonly for QUEUE_SENDER. Returns the number of messages contained in a queue.
  • receiveMessage: Itit reads and receives all the messages sent to a queue. The first message received would be stored in the first position and the last one in the last position.
  • rollback: Allowsallows rollback.
  • sendMessage: Sendsend messages to the queue. You must indicate in the parameters which message the queue has to receive.