Skip to content

Instantly share code, notes, and snippets.

@slyphon
Created April 22, 2010 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slyphon/f1044271c41c0880bee6 to your computer and use it in GitHub Desktop.
Save slyphon/f1044271c41c0880bee6 to your computer and use it in GitHub Desktop.
(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