Thanks steve,
Sorry it's all my fault. Actually my colleague acquired another session in AuditInterceptor.
He said that operating the same session that uses the interceptor like
Code:
session.openSession(new AuditInterceptor())
will leads to serious error. So his solution is use another session for select.
(Can someone tell me whether this is TRUE or FALSE as using the same session object in AuditInterceptor as the session object called AuditInterceptor)
Here's some difference between MYSQL and DB2. When we use MYSQL, no such kind error, but when we switched DB2, selecting a table when another connection is inserting into the same table will make the selecting suspends.
Now the problem has been fixed by using a JDBC connection
session.connection() and some primitive JDBC operations.
Thanks again for Brannor and steve. *_*)/~
Tele