logger.log(BasicLevel.DEBUG, "MessagePersistenceModule.loadAll() " + msgTxname);
Vector messages = new Vector();
// Retrieving the names of the persistence message previously saved.
Transaction tx = AgentServer.getTransaction();
String[] names = tx.getList(msgTxname);
// Retrieving the messages individually persisted.
for (int i = 0; i < names.length; i++) {
if (names[i].charAt(names[i].length() - 1) != 'B') {
try {
Message msg = (Message) tx.load(names[i]);
msg.txname = names[i];
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG, "loadAll: names[" + i + "] = " + msg);
messages.add(msg);