Skip to content

Commit 4247311

Browse files
committed
added durable key to conn-map
1 parent 8e05564 commit 4247311

File tree

5 files changed

+5
-37
lines changed

5 files changed

+5
-37
lines changed

example/consumer.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
:type "direct"
1010
:exchange "sorting-room"
1111
:queue "po-box"
12+
:durable true
1213
:routing-key "tata"})
1314

1415
(defonce connection (rabbitmq/connect conn-map))

example/example.clj

Lines changed: 0 additions & 35 deletions
This file was deleted.

example/publisher.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
exec java -cp "lib/*:$PWD/*" clojure.main "$0" -- "$@"
33
]
44

5-
65
(ns rabbitmq-publisher
76
(:require [org.clojars.rabbitmq :as rabbitmq]))
87

@@ -14,6 +13,7 @@ exec java -cp "lib/*:$PWD/*" clojure.main "$0" -- "$@"
1413
:type "direct"
1514
:exchange "sorting-room"
1615
:queue "po-box"
16+
:durable true
1717
:routing-key "tata"})
1818

1919
(println conn-map)
@@ -24,6 +24,7 @@ exec java -cp "lib/*:$PWD/*" clojure.main "$0" -- "$@"
2424

2525
(def c (ref 0))
2626

27+
2728
(while true
2829
(dosync (alter c inc))
2930
(println "cycle: " @c)

example/test-connection.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ exec java -cp "lib/*:$PWD/*" clojure.main "$0" -- "$@"
1414
:type "direct"
1515
:exchange "sorting-room"
1616
:queue "po-box"
17+
:durable true
1718
:routing-key "tata"})
1819

1920
(println "Connecting ...")

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
[commons-io "1.2"]
66
[commons-cli "1.1"]
77
[rabbitmq-client "1.7.0"]]
8-
; :dev-dependencies [[leiningen/lein-swank "1.0.0-SNAPSHOT"]]
8+
;:dev-dependencies [[leiningen/lein-swank "1.0.0-SNAPSHOT"]]
99
)

0 commit comments

Comments
 (0)