Skip to content

Instantly share code, notes, and snippets.

@jcrossley3
Created July 12, 2012 21:19
Show Gist options
  • Save jcrossley3/3101061 to your computer and use it in GitHub Desktop.
Save jcrossley3/3101061 to your computer and use it in GitHub Desktop.
(try
(in-ns 'clojure.java.jdbc)
(def ^{:dynamic true} xa-transaction* transaction*)
(defn transaction* [& args] (apply xa-transaction* args))
(in-ns 'immutant.xa.transaction)
(catch Throwable e (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