@@ -28,7 +28,7 @@ Development is done on [Cache-Tort-Git UDL fork](https://github.com/MakarovS96/c
2828
2929## Usage
3030
31- Check `RabbitMQ .Utils` for sample code. The main class is `isc.rabbitmq.API`. It has the following methods.
31+ Check `isc.rabbitmq .Utils` for sample code. The main class is `isc.rabbitmq.API`. It has the following methods.
3232
3333### Methods
3434
@@ -46,7 +46,7 @@ Check `RabbitMQ.Utils` for sample code. The main class is `isc.rabbitmq.API`. It
4646| Argument | Java type | InterSystems type | Value | Required | Description |
4747|---------------|------------------|---------------------|---------------|-----------------------------------------------|-----------------------------------------|
4848| gateway | - | %Net.Remote.Gateway | - | Yes | Connection to Java Gateway |
49- | host | String | %String | localhost | Yes | Address of RabbitMQ server |
49+ | host | String | %String | localhost | Yes | Address of RabbitMQ server or `amqp:\\` connection string |
5050| port | int | %Integer | -1 | Yes | RabbitMQ listener port |
5151| user | String | %String | guest | Yes | Username |
5252| pass | String | %String | guest | Yes | Password |
@@ -111,19 +111,20 @@ Assuming you already have `api` object, sending messages can be done by one of
111111
112112#### Sending messages to default queue
113113
114- Default queue is a queue specified during creation of the `api` object. To send a message just call
114+ Default queue is a queue specified during creation of the `api` object. To send a message just call `sendMessage` or `sendMessageId`:
115115
116116```
117117#Dim api As isc.rabbitmq.API
118118#Dim msg As %GlobalBinaryStream
119- Do api.sendMessage(msg, "correlationId", "messageId " _ $zdt($zts,3,1,3))
119+ Do api.sendMessage(msg)
120+ Do api.sendMessageId(msg, "correlationId", "messageId " _ $zdt($zts,3,1,3))
120121```
121122
122123Where `stream` is a message body. You can either provide both `messageId` and `correlationId` or non of them.
123124
124125#### Sending messages to specified queue
125126
126- Everything is the same as above, except you call `sendMessageToQueue` method and the first argument is the name of the queue.
127+ Everything is the same as above, except you call `sendMessageToQueue` \ `sendMessageToQueueId` method and the first argument is the name of the queue.
127128
128129### Reading messages
129130
0 commit comments