AMQP Subscriber
The adapter manages subscriptions to an AMQP queue and defines the process to be executed.
Properties
Operation | Defines the operation executed by the adapter Possible values:
|
Parameters
Adapter | Main adapter class (do not change!) Possible values: de.softproject.integration.adapter.amqp.AmqpSubscriberAdapter: Main class (default) |
storedConfig | Identifier of the configuration provided in Possible values: Any string containing the configuration identifier, e.g. |
host | AMQP server host Possible values: Server host, e.g. |
port | Dedicated AMQP port in the server Possible values: AMQP port number, e.g. |
username | Name of the user subscribing or unsubscribing to a topic Possible values: Any string containing the user name, e.g. |
password | Password associated to the user Possible values: Any string containing the corresponding password, e.g. |
queue | Queue where the message is subscribed or unsubscribed Possible values: Any string containing the queue name, e.g. |
container | Container where the queue is placed Possible values: Any string containing the container name, e.g. |
qos | Quality of Service of the message Possible values:
|
useSsl | Enable SSL encryption Possible values: |
useSasl | Activate SASL Authentication Possible values:
|
mechanism | SASL mechanism of the remote endpoint. Mögliche Werte:
|
process | Path of the Technical Process executed as soon as a message is received Possible values: Process path, e.g. |
Status values
0 | The operation was executed successfully (no output is generated) |
-1 | An error occurred during the operation's execution (no output is generated) |
Configuration
To provide the needed information a configuration file with a specified structure can be used, which is loaded at server startup. The configuration file amqpconfig.xml
must be stored under the server path X4DB/0
.
The file has the following structure:
amqpconfig.xml
<?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>