Uploaded image for project: 'java.jdbc'
  1. JDBC-36

using exisiting java based connection pool in clojure

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Declined
    • Labels:
      None

      Description

      We have a connection pool in Java and would like to use the same for our complete project where code is mixture of Clojure/Java.

      (def db (ConnectionManager/getConnection)) ; #<ConnectionHandle com.jolbox.bonecp.ConnectionHandle@53371566> connection type we get after excuting this line
      sql/with-connection db
      (sql/with-query-results res ["select * from DummyTable where rownum <=100"] (vec res)
      (map #(println (class (val %)) " " (key %)) (first res))
      )
      )

        Attachments

          Activity

            People

            • Assignee:
              seancorfield Sean Corfield
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: