-
-
Save slyphon/f1044271c41c0880bee6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn with-jta-session* | |
[func] | |
(assert-initialized!) | |
(if *session* | |
(func *session*) | |
(jta/with-user-transaction | |
(with-open [session (.createSession (@*jms-state* :connection) true 0)] | |
(binding [*session* session] | |
(recur func)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment