Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34014

Re: Troubles with informix jdbc driver ... -- workaround found

From Andreas Leitgeb <avl@logic.at>
Newsgroups comp.lang.java.programmer
Subject Re: Troubles with informix jdbc driver ... -- workaround found
Date 2016-03-17 17:23 +0000
Organization A noiseless patient Spider
Message-ID <slrnnelq62.456.avl@login.logic.tuwien.ac.at> (permalink)
References <slrnnedgqn.456.avl@login.logic.tuwien.ac.at> <mcmurtrie-9B0C6C.21264114032016@news.sonic.net> <slrnneh26c.456.avl@login.logic.tuwien.ac.at> <slrnnejkme.456.avl@login.logic.tuwien.ac.at> <mcmurtrie-AFC581.22363916032016@news.sonic.net>

Show all headers | View raw


Kevin McMurtrie <mcmurtrie@pixelmemory.us> wrote:
> Wow, I guess the Informix driver still sucks a decade later.

At least it sucks in a somewhat different way now. :-)

** work-around **
I found out that adding a property "DATABASE" with a copy of
the value from the URL to the Properties given to the call to
getConnection(url,props) appears to work around the bug.
**

Nice thing is, that they really solved the old problem with
concurrent connection attempts being principially serialized.
I gave it some urls with invalid ip-addresses and some fine ones,
and even while it was waiting for the timeout on the bogus one,
it immediately connected the fine one.

DriverManager itself isn't all that complicated... it just passes
the url to all registered drivers and the first one to return a
non-null result (or exception) is the chosen one.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Troubles with informix jdbc driver ... Andreas Leitgeb <avl@logic.at> - 2016-03-14 13:54 +0000
  Re: Troubles with informix jdbc driver ... Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-03-14 21:23 +0100
    Re: Troubles with informix jdbc driver ... Andreas Leitgeb <avl@logic.at> - 2016-03-14 21:30 +0000
  Re: Troubles with informix jdbc driver ... Arne Vajhøj <arne@vajhoej.dk> - 2016-03-14 18:16 -0400
    Re: Troubles with informix jdbc driver ... Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-03-15 21:57 +0100
      Re: Troubles with informix jdbc driver ... Arne Vajhøj <arne@vajhoej.dk> - 2016-03-15 21:18 -0400
    Re: Troubles with informix jdbc driver ... Andreas Leitgeb <avl@logic.at> - 2016-03-15 22:25 +0000
      Re: Troubles with informix jdbc driver ... Arne Vajhøj <arne@vajhoej.dk> - 2016-03-15 21:25 -0400
  Re: Troubles with informix jdbc driver ... Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2016-03-14 21:26 -0700
    Re: Troubles with informix jdbc driver ... Andreas Leitgeb <avl@logic.at> - 2016-03-15 22:09 +0000
      Re: Troubles with informix jdbc driver ... Andreas Leitgeb <avl@logic.at> - 2016-03-16 21:37 +0000
        Re: Troubles with informix jdbc driver ... Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2016-03-16 22:36 -0700
          Re: Troubles with informix jdbc driver ... -- workaround found Andreas Leitgeb <avl@logic.at> - 2016-03-17 17:23 +0000
            Re: Troubles with informix jdbc driver ... -- workaround found Andreas Leitgeb <avl@logic.at> - 2016-03-18 11:13 +0000

csiph-web