logger.log(Logger.DEBUG, getPrefix() + " convertWork ");
}
List<TransactionWorkMessage> sentMsgs = work.getSentMessages();
Iterator<TransactionWorkMessage> sentIter = sentMsgs.iterator();
while (sentIter.hasNext()) {
TransactionWorkMessage msg = sentIter.next();
if (DEBUG) {
logger.log(Logger.DEBUG, getPrefix() + " convert sent msg "+msg);
}
DestinationUID duid = msg.getDestUID();
int type = (duid.isQueue() ? DestType.DEST_TYPE_QUEUE
: DestType.DEST_TYPE_TOPIC);
// make sure destination exists
// ( it may have been removed on load if it just contained
// messages in a transaction)
Destination dest = Destination.getDestination(duid.getName(),
type, true, true);
Packet message = msg.getMessage();
ConsumerUID[] iids = msg.getStoredInterests();
//if (iids != null)
if(false){
int[] states = new int[iids.length];
for (int i = 0; i < iids.length; i++) {
states[i] = 0;