RE: Exception after my program sleep for 2 hours.

Thomas Fischer <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.torque.user
Message-ID <OF4E3341EE.20F082BA-ONC1257464.00788590-C1257464.00788592@seitenbau.net>
>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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.