try
{
con = connector.getConnection();
do
{
....
result = connector.getQueryRunner().query(con, readStmt, params, connector.getResultSetHandler());
if (result != null)
{
if (staticLogger.isDebugEnabled())
{
staticLogger.debug("Received: " + result);
}
break;
}
final long sleep = Math.min(connector.getPollingFrequency(), timeout
- (System.currentTimeMillis() - t0));
if (sleep > 0)
{
....
Thread.sleep(sleep);
}
else
{
staticLogger.debug("Timeout"); return null; }
}
while (true);
....
JdbcUtils.commitAndClose(con);
return message;
}
catch (final Exception e)
{
JdbcUtils.rollbackAndClose(con);
throw e;
}
1.x: http://fisheye.codehaus.org/changelog/mule/?cs=11637

2.x: http://fisheye.codehaus.org/changelog/mule/?cs=11638