754755756757758759760
String[] res = new String[messages.size()]; for (int i = 0; i < messages.size(); i++) { Message msg = (Message) messages.get(i); res[i] = msg.getIdentifier(); } replyToTopic(new GetQueueMessageIdsRep(res), replyTo, requestMsgId, replyMsgId); }
347348349350351352353354
* @return The identifiers of all messages in this queue. * * @see org.objectweb.joram.client.jms.QueueMBean#getMessageIds() */ public String[] getMessageIds() throws AdminException, ConnectException { GetQueueMessageIdsRep reply = (GetQueueMessageIdsRep)doRequest(new GetQueueMessageIds(agentId)); return reply.getMessageIds(); }