Skip to content

Commit 36cc887

Browse files
authored
Update README.md
1 parent 10bb4f0 commit 36cc887

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
11
# RabbitMQ-Ensemble-adapter
22
Ensemble adapter for RabbitMQ
3+
4+
## Installation
5+
6+
1. Install [java 1.8](http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html).
7+
2. Build [RabbitMQ-Ensemble-javaapi](https://github.com/intersystems-ru/RabbitMQ-Ensemble-javaapi) or download [latest binary](https://github.com/intersystems-ru/RabbitMQ-Ensemble-javaapi/releases).
8+
3. Create (or use any existing one) Java gateway. To create one go to SMP > System Administration > Configuration > Connectivity > Object Gateways. Remember the `Port` value.
9+
4. Start Java Gateway.
10+
5. In a terminal in a target namespace execute:
11+
12+
```
13+
Set class = "isc.rabbitmq.API"
14+
Set classPath = ##class(%ListOfDataTypes).%New()
15+
Do classPath.Insert(PATH-TO-JAR)
16+
Set gateway = ##class(%Net.Remote.Gateway).%New()
17+
Set sc = gateway.%Connect("localhost", PORT, $Namespace, 2, classPath)
18+
Set sc = gateway.%Import(class)
19+
Write ##class(%Dictionary.CompiledClass).%ExistsId(class)```
20+
6. In the namespace `isc.rabbitmq.API` class should be present and compiled.
21+
7. Import this project and compile.
22+
8. For samples refer to the test production `RabbitMQ.Production`.

0 commit comments

Comments
 (0)