Skip to content

Instantly share code, notes, and snippets.

:repositories [["central" {:snapshots false, :url "http://repo1.maven.org/maven2/"}]
["clojars" {:url "http://clojars.org/repo/"}]])
-*- mode: compilation; default-directory: "~/src/thedeuce/scheduling/" -*-
Compilation started at Fri Mar 14 13:11:42
lein deps :tree
Possibly confusing dependencies found:
[org.projectodd.wunderboss/wunderboss-scheduling "0.1.0-SNAPSHOT"] -> [org.slf4j/slf4j-api "1.5.5"]
overrides
[org.projectodd.wunderboss/wunderboss-scheduling "0.1.0-SNAPSHOT"] -> [org.jboss.slf4j/slf4j-jboss-logging "1.0.4.GA"] -> [org.slf4j/slf4j-api "1.6.1"]
Consider using these exclusions:
(schedule id f
(-> (in 5 :minutes)
(every 2 :hours, 30 :minutes)
(until "1730")))
(schedule id f (every 2 :minutes))
(schedule id f (cron "* * * * * ?"))
13:28:37,136 INFO [immutant.boot] (ServerService Thread Pool -- 15) Welcome to Immutant 1.1.1-SNAPSHOT (CelloPudding), rev: c4c69488be2bf0047d32d807ca17aebc433ddab5 +modifications, build: dev-jim
13:28:37,320 WARN [org.jboss.as.server] (Controller Boot Thread) JBAS015883: No security realm defined for native management service; all access will be unrestricted.
13:28:37,328 WARN [org.jboss.as.server] (Controller Boot Thread) JBAS015884: No security realm defined for http management service; all access will be unrestricted.
13:28:37,595 WARN [org.hornetq.journal] (MSC service thread 1-6) HQ142000: You have a native library with a different version than expected
13:28:37,598 WARN [org.jboss.as.messaging] (MSC service thread 1-6) JBAS011600: AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
13:28:37,771 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "lambda-clj
(run handler args))
(ns wets.core
(:require [immutant.web :refer [run]]
[ring.util.response :refer [response]]))
(defn handler [request]
(response "Hello world"))
(defn -main
[& {:as args}]
(run handler args))
C-c C-c[jim@thinky feature-demo]$ lein run
00:10:06,322 [INFO ] org.projectodd.wunderboss.web.Web - Undertow listening on localhost:8080
00:10:06,323 [INFO ] org.projectodd.wunderboss.web.Web - Registered web context /
00:10:06,348 [INFO ] org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.2.1 created.
00:10:06,352 [INFO ] org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.2.1) 'SimpleQuartzScheduler' with instanceId 'SIMPLE_NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 5 threads.

Who are we?

Who are you?

Version 1.1.1 forthcoming

Bug fixes

  • lein-environ compatibility
  • others

Java 8 compatibility

plan to release not long after clojure 1.6.0 (next weekish?)

No more 1.x feature releases, just bug fixes

; CIDER 0.6.0alpha (package: 20140316.1007) (Clojure 1.5.1, nREPL 0.2.3)
user> (.maxMemory (Runtime/getRuntime))
103284736
user> (require '[clojure.java.io :as io])
nil
user> (with-open [f (io/writer "/tmp/foo")] (doseq [x (range 50000)] (.write f (prn-str [x (range 1000)]))))
nil
user> (.length (io/file "/tmp/foo"))
194988890
user> (slurp "/tmp/foo")
; CIDER 0.6.0alpha (package: 20140316.1007) (Clojure 1.6.0, nREPL 0.2.3)
user> (def login-cache (cache/lookup-or-create "showcase-login-cache" :persist true))
CompilerException java.lang.RuntimeException: No such namespace: cache, compiling:(NO_SOURCE_PATH:1:18)
user> (require '[immutant.cache :as cache])
nil
user> (def login-cache (cache/lookup-or-create "showcase-login-cache" :persist true))
#'user/login-cache
user> login-cache
{}
user> (cache/put login-cache :a 1)