db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: Exception after my program sleep for 2 hours.
Date Tue, 10 Jun 2008 21:56:25 GMT

>I have a java program that uses Torque and it is working fine with
>one  exception. My program might need to sleep for 2 hours, using
>Thread.sleep() but  after it wake up again, torque always throws an
>exception when I try to call doSelect(). Is there  anyway to avoid
>this?.  This program don't do any  connection handling at all.

The exception indicates that this is a mysql problem. please search the net
for this mysql problem.

> In an
>other program, i want to have all my queries running within a
>transaction. So i do a Connection connection=Transaction.begin(); but
>is there any way to specify that this connection should be used as
>default for this thread, so that I don't have to pass the connection
>to all the methods that might need it.

I'm afraid this is not possible at the moment.

    Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message