The DataQueueWriter microservice writes messages to AS400 Queues.
Configuration and Testing
Configuration
The Configuration Property Sheet (CPS) of DataQueueWriter is shown in the figure below with the Expert Properties view enabled.
Figure 1: Sample DataQueue Reader Configuration
The table below provides descriptions for properties in the CPS.
Property | Description |
---|---|
Error handling configuration | The remedial actions to be taken when a particular error occurs can be configured using this attribute. |
Host Name | Hostname or IP of AS/400 Server. |
User Name | Username. |
Password | Password pertaining to the username. |
Queue Name | Name of AS/400 Queue. |
Queue Size(bytes) | Size of the AS/400 Queue. |
Auto Create Queue | Create queue automatically if it does not exist. |
Close Connection | If set to yes, then the connection will be closed for each successful writing of a message. |
Expert Properties
Pre Processing XSL Configuration
Pre Processing XSL configuration can be used to transform request message before processing it. Click the small button against the property to configure the properties.
Post Processing XSL Configuration
Post Processing XSL configuration can be used to transform response message before sending it to the output port.
Process Message Based on Property
The property helps components to skip certain messages from processing.
Testing
The configuration can be validated using the Validate button. A sample result of the Validate operation is shown below.
Figure 2: Validating the configuration
Input Port: Message that should be sent to AS/400 Queue.
Output Port: Sends the status, if the message was written in the queue.
Functional Demonstration
Configure the DataQueueWriter microservice as shown in Figure 1.
The figure below shows a sample event process in which DataQueueWriter writes messages sent by the Feeder microservice to the Queue.
Figure 3: Sample event process using the DataQueueReader microservice
Sample Scenario
Sending a sample text message from the Feeder microservice to DataQueueWriter.
Sample Input
The figure below shows a sample input from the Feeder microservice.
Figure 4: Sample input from the Feeder microservice
Sample Output
The figure below shows status messages sent by the DataQueueWriter microservice.
Figure 5: Status messages sent by DataQueueWriter