The timeout needs to be set before the transaction is started.
instead of
tran = dbSession.beginTransaction();
tran.setTimeout(10);// 10 seconds
try
tran = dbSession.getTransaction();
tran.setTimeout(10);
tran.begin();
JMM
2009-03-19 22:19:41