FAQ
Hello,

if database (MySQL) is restarted, how to handle pooled connections? Can
Cayenne handle database restarts in some way.

Cheers,
Borut

Search Discussions

  • Tore Halset at Sep 25, 2008 at 1:58 pm
    Hello.
    On Sep 25, 2008, at 15:52 , Borut Bolčina wrote:

    if database (MySQL) is restarted, how to handle pooled connections?
    Can
    Cayenne handle database restarts in some way.
    This is up to the connection pooling system. We are deploying our
    cayenne applications inside JBoss and JBoss checks every connection in
    the pool before cayenne uses it for anything. If the connection is
    down, then a new one is created.

    Regards,
    - Tore.
  • Michael Gentry at Sep 25, 2008 at 2:05 pm
    If you are using the built-in Cayenne connection pool, it should
    re-connect automatically. Connection pools outside of Cayenne are
    dependent upon whatever they provide. I believe MySQL also allows you
    to specify a re-connection option in the jdbc: string.

    On Thu, Sep 25, 2008 at 9:52 AM, Borut Bolčina wrote:
    Hello,

    if database (MySQL) is restarted, how to handle pooled connections? Can
    Cayenne handle database restarts in some way.

    Cheers,
    Borut

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriescayenne
postedSep 25, '08 at 1:52p
activeSep 25, '08 at 2:05p
posts3
users3
websitecayenne.apache.org

People

Translate

site design / logo © 2022 Grokbase