This adapter allows you to publish messages in an AMQP topic.
Properties
|
|
Operation performed by the adapter Possible values:
|
Parameters
|
|
Identifier of the configuration provided in the Possible values: Any string with the identifier, for example, This parameter is required if you are using the |
|
|
AMQP server host Possible values: Server host, such as This parameter is required if you are not using the |
|
|
Dedicated AMQP port on the server Possible values: AMQP port number, e.g. This parameter is required if you are not using the |
|
|
Name of the user who publishes the message Possible values: Any string with the username, such as |
|
|
The user's password Possible values: Any string with the password, e.g. |
|
|
Queue to which the message is published Possible values: Any string with the name of the queue, e.g. This parameter is required if you are not using the |
|
|
Container in which the queue is located Possible values: Any string with the container name, e.g. |
|
|
Quality of service of the message Possible values:
If the |
|
|
Enables SSL encryption Possible values:
|
|
|
Enables SASL encryption Possible values:
|
|
|
SASL mechanism of the remote endpoint Possible values:
|
|
|
Defines the message as permanent Possible values:
|
|
|
Priority level of the message Possible values: Any integer between |
|
|
The length of time in milliseconds after which the message should be discarded Possible values: Any integer that specifies the time span in milliseconds, e.g. |
Status values
|
1 |
The adapter operation was executed successfully |
|
|
The operation was successful (no output is generated). |
|
|
An error occurred while the operation was running (no output is generated). |
Configuration
A configuration file, which is loaded at server startup, can be used to provide the required information. The amqpconfig.xml configuration file must be provided under the path X4DB/0.
The file has the following structure:
<?xml version='1.0' encoding='UTF-8'?>
<RootElement>
<AMQPConfig name="queueEmployeesConfig">
<Server host="localhost" port="5672" useSsl="false"/>
<Client user="user" password="p4ssw0rd"/>
<Queue container="employeesContainer" name="employees" qos="AT_LEAST_ONCE"/>
</AMQPConfig>
</RootElement>
Input
The AMQP Publisher expects the following input structure, whereby only one element per message is allowed:
Simple types:
<Messages>
<Message>
<Element type="String" value="Good morning!!"/>
</Message>
<Message>
<Element type="Int" value="18"/>
</Message>
</Messages>
The following simple types are allowed: Binary, Boolean, Byte, Char, Decimal32, Decimal64, Decimal128, Double, Float, Long, Short, String, Symbol, Timestamp (according to the following pattern: yyyy-[m]m-[d]d hh:mm:ss), UByte, UInt, ULong, UShort, Uuid.
Complex types:
-
List:
XML<Messages> <Message> <Element type="List"> <Element type="Int" value="1"/> <Element type="Short" value="3"/> <Element type="Boolean" value="false"/> </Element> </Message> </Messages> -
Map:
XML<Messages> <Message> <Element type="Map"> <Entries> <Entry> <Key type="Int" value="2"/> <Value type="String" value="Hello!!"/> </Entry> <Entry> <Key type="Int" value="5"/> <Value type="String" value="Goodbye!!"/> </Entry> </Entries> </Element> </Message> </Messages>