Skip to content

Instantly share code, notes, and snippets.

@tobias
Forked from jcrossley3/transaction.clj
Created July 12, 2012 21:20
Show Gist options
  • Save tobias/3101076 to your computer and use it in GitHub Desktop.
Save tobias/3101076 to your computer and use it in GitHub Desktop.
(if (resolve 'clojure.java.jdbc/transaction*)
(do
(in-ns 'clojure.java.jdbc)
(def ^{:dynamic true} xa-transaction* transaction*)
(defn transaction* [& args] (apply xa-transaction* args))
(in-ns 'immutant.xa.transaction))
(println "Using XA with java.jdbc 0.1.x is not supported"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment