You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -128,9 +128,6 @@ Everything is the same as above, except you call `sendMessageToQueue` method and
128
128
129
129
Messages are always read from the default queue (specified at creation of the `api` object). Message body can be received as text or as a stream.
130
130
131
-
132
-
`props` should have 15 elements in the case message mody would be returned as a stream, and 16 if it would be returned as a string. In that case 16th element would be message body.
133
-
134
131
#### Reading message as a stream
135
132
136
133
First you need to prepare `props` to pass by reference into Java and then call `readMessageStream`:
@@ -149,18 +146,19 @@ Set msg = api.readMessageStream(.props)
149
146
150
147
#### Reading message as a string
151
148
152
-
153
149
```
154
150
#Dim api As isc.rabbitmq.API
155
151
#Dim msg As %GlobalBinaryStream
156
152
#Dim props As %ListOfDataTypes
157
153
Set props = api.readMessageString()
158
154
```
159
155
160
-
`props` would be filled with message metainformation, not that you don't need to init it on InterSystems side before calling RabbitMQ.
156
+
`props` would be filled with message metainformation, note that you don't need to initialize it on the InterSystems side before calling RabbitMQ.
161
157
162
158
#### Props
163
159
160
+
Elements appearing in `props`. All of them besides first and second are optional. Conversion from list into `RabbitMQ.Message` is available in the `ListToMessage` method of `RabbitMQ.InboundAdapter` class.
0 commit comments