stmt.setString(1, sid.getValue());
ResultSet res = stmt.executeQuery();
while (res.next()) {
BigInteger mn = res.getBigDecimal(1).toBigInteger();
InputStream is = res.getBinaryStream(2);
RMMessageImpl msg = new RMMessageImpl(mn, is);
msgs.add(msg);
}
} catch (SQLException ex) {
LOG.log(Level.WARNING, new Message(outbound ? "SELECT_OUTBOUND_MSGS_FAILED_MSG"
: "SELECT_INBOUND_MSGS_FAILED_MSG", LOG).toString(), ex);