Zum Hauptinhalt springen

SendAMQPMessage

Structure

SendAMQPMessage(sHost, sPort, sUser, sPassword, sContainer, sSession, sSender, sTarget, bSSL, sMessage)

Parameters

| Parameter | Type | Description
| sHost | String | Host of the server to connect to.sPort | String | Port to send the message to.sUser | String | User to connect assPassword | String | Password to connect assContainer | String | AMQP container to usesSession | String | AMQP session to usesSender | String | AMQP sender to usesTarget | String | Target Queue to send message tobSSL | Boolean | Whether to use SSL when connectingsMessage | String | The message to send. |

Return Value

"Message Sent." or error message describing the problem sending.

Description

This function connects to a server using the AMQP protocol and attempts to send a message to it.

Example

SendAMQPMessage("localhost", "5672", "", "", "IndyContainer", "IndySession", "IndySender", "DemoTarget", false, "Test message from IndySoft")

Application Compatibility

All |