jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milan Trajkovic" <mil...@gmail.com>
Subject Re: About the parameter config of Mysql autoReconnect
Date Fri, 17 Nov 2006 16:42:24 GMT
I had the same problem.
I have created TimerTask that add and remove node to workspace (along
with session.save() - so it is actually persisted in Database). It is
fired once an hour,
and keeps connection open.

2006/11/17, Jukka Zitting <jukka.zitting@gmail.com>:
> Hi,
> On 11/17/06, Thomas Mueller <thomas.tom.mueller@gmail.com> wrote:
> > Why does the connection to the database breaks by the way?
> I think there's a default 8 hour timeout in MySQL. One way to prevent
> that could be to include a background thread in a custom
> MySQLPersistenceManager that pings the database every now and then to
> keep the connection alive.
> BR,
> Jukka Zitting

View raw message