i have some problem to boost my jms browser. I need to browse and display ONLY header information of te messages, but when i browsing on a Q with a lot of large text\xml messages the browser run very slow, i think it's depend by the size of the messages body but i dont need the body.
QUESTION: is there a way to get only the header information from the message enumerator?
Ty.
CODE:
browser = session.createBrowser(q);
@SuppressWarnings("unchecked")
Enumeration msgs = browser.getEnumeration();
if (!msgs.hasMoreElements()) {
} else {
reading = true;
while (msgs.hasMoreElements()) {
Message tempMsg = msgs.nextElement();
FrontMessage result = new FrontMessage();
result.setFormat(tempMsg.getStringProperty("JMS_IBM_Format"));
result.setApplication(tempMsg.getStringProperty("JMSXAppID"));
result.setDate(tempMsg.getStringProperty("JMS_IBM_PutDate"));
result.setTime(tempMsg.getStringProperty("JMS_IBM_PutTime"));
result.setEncoding(tempMsg.getStringProperty("JMS_IBM_Encoding"));
result.setMessageId(tempMsg.getJMSMessageID());
result.setCorrelationId(tempMsg.getJMSCorrelationID());
result.setCharSet(tempMsg.getStringProperty("JMS_IBM_Character_Set"));
messages.add(result);
}
}