Skip to content

Instantly share code, notes, and snippets.

View jacobemcken's full-sized avatar

Jacob Emcken jacobemcken

View GitHub Profile
@jacobemcken
jacobemcken / init.clj
Last active December 23, 2015 17:49
The following tested using Immutant 1.x.incremental.1009 (PuntoBueno)
(ns immutant.init
(:require [clj-time.core :as dt]
[immutant.messaging :as msg]))
(msg/start "/queue/a-queue")
(msg/listen "/queue/a-queue" #(println "received: " %))
(msg/publish "/queue/a-queue" {:created (dt/now)}) ; gives a stacktrace