public boolean isSatisfied()
{
try
{
Object[] queryResult = (Object[]) qr.query(jdbcConnector.getConnection(),
"SELECT DATA FROM TEST WHERE TYPE = 2 AND ACK IS NULL", new ArrayHandler());
// Exception occurs after the SEDA queue for an asynchronous request, so from the client's
// perspective, the message has been delivered successfully.
// Note that this behavior is different from services because the exception occurs before
// the SEDA queue for services.
return (queryResult == null);