Immutant
  1. Immutant
  2. IMMUTANT-197

Let xa/datasource accept a connection uri

    Details

    • Type: Feature Request Feature Request
    • Status: Resolved Resolved (View Workflow)
    • Priority: Minor Minor
    • Resolution: Partially Completed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      Accept a connection uri as handled by DriverManager/getConnection.

      Examples:

      • jdbc:postgresql://localhost/test?user=fred&password=secret&ssl=true
      • jdbc:derby:memory:myDB
      • jdbc:h2:~/test
      • jdbc:h2:mem:
      • jdbc:h2:mem:test;DB_CLOSE_DELAY=-1

      References:

        Activity

        Hide
        Jim Crossley
        added a comment -

        We accept connection URL's for every XA adapter that supports it. Postgresql's XA driver doesn't, unfortunately, and I think it would lead to confusion for us to pick out only the elements of the non-XA Postgres URL to pass to the XA one, ignoring all the many other options the non-XA driver supports.

        Immutant doesn't as yet support Derby and SQLite doesn't support XA. We've always supported passing a :url option for the h2 adapter (though this was undocumented, and now fixed).

        The bottom line is that you can pass the :url option for all the Immutant-supported adapters and all but postgres should work, though certain oracle drivers require passing :username and :password in addition to the :url.

        Show
        Jim Crossley
        added a comment - We accept connection URL's for every XA adapter that supports it. Postgresql's XA driver doesn't, unfortunately, and I think it would lead to confusion for us to pick out only the elements of the non-XA Postgres URL to pass to the XA one, ignoring all the many other options the non-XA driver supports. Immutant doesn't as yet support Derby and SQLite doesn't support XA. We've always supported passing a :url option for the h2 adapter (though this was undocumented, and now fixed). The bottom line is that you can pass the :url option for all the Immutant-supported adapters and all but postgres should work, though certain oracle drivers require passing :username and :password in addition to the :url.

          People

          • Assignee:
            Jim Crossley
            Reporter:
            Nelson Morris
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: