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 <[EMAIL PROTECTED]>:
Hi,

On 11/17/06, Thomas Mueller <[EMAIL PROTECTED]> 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

Reply via email to