Skip to content
Snippets Groups Projects
Commit 0137a3527b38 authored by jfp's avatar jfp
Browse files

Add rdb example information

parent f57f20617d66
Branches
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
- RMQPLUS_HOSTNAME
- RMQPLUS_USERNAME
- RMQPLUS_PASSWORD
- RMQPLUS_ROUTING_KEY
3. Set the WASD rules
- example:
```
......@@ -18,7 +19,7 @@
set /rmqplus/* cgiprefix=""
script+ /rmqplus/* /dev/dir/rmqpluscmd*
```
4. Optional run the provided example<br>
4. Optional run the provided simple example<br>
- create a RabbitMQ `rpc_queue` queue
- run the python example server<br>
`python rpc_server.py ip_rabbitmq_server username password`
......@@ -28,3 +29,12 @@
```json
{"status": 1, "duration": 0.002000093460083008, "value": "for this"}
```
5. Optional run the provided rdb example<br>
- create a RabbitMQ `rpc_queue_rdb` queue
- run the python example server<br>
`python rpc_server.py ip_rabbitmq_server username password dbname`
- Execute a test request<br>
`http://wasd_server/rmqplus/?empid=00416`
- This should display a result json
```json
{"status": 1, "duration": 0.05999398231506348, "value": {"MIDDLE_INITIAL": "A", "CITY": "Alton ", "FIRST_NAME": "Louie ", "LAST_NAME": "Ames ", "ADDRESS_DATA_1": "61 Broad st. ", "ADDRESS_DATA_2": " ", "BIRTHDAY": "1941-04-13 00:00:00", "SEX": "M", "STATE": "NH", "EMPLOYEE_ID": "00416", "POSTAL_CODE": "03809", "STATUS_CODE": "1"}}```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment