Skip to content

Commit

Permalink
enables jmx for rabbit-mq channel pool
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhang.balkundi committed Apr 11, 2022
1 parent 416cc20 commit 3d36bc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ziggurat/messaging/channel_pool.clj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
(.setMinIdle (:min-idle merged-config))
(.setMaxIdle (:max-idle merged-config))
(.setMaxTotal (+ (:min-idle merged-config) total-thread-count))
(.setTestOnBorrow true))))
(.setTestOnBorrow true)
(.setJmxEnabled true)
(.setJmxNameBase "rabbitmq-producer-channel-pool")
(.setJmxNamePrefix "ziggurat"))))

(defn create-channel-pool [^Connection connection]
(let [pool-config (create-object-pool-config (get-in zc/ziggurat-config [:rabbit-mq-connection :channel-pool]))
Expand Down

0 comments on commit 3d36bc5

Please sign in to comment.