}
public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model)
throws PortletException, IOException {
String resourceAdapterModuleName = request.getParameter(RESOURCE_ADAPTER_MODULE_NAME);
JMSMessageHelper helper = JMSMessageHelperFactory.getMessageHelper(request, resourceAdapterModuleName);
JMSMessageInfo[] messages;
try {
JMSDestinationInfo jmsDestinationInfo = JMSDestinationInfo.create(request);
messages = helper.getMessagesList(request, jmsDestinationInfo, null);
request.setAttribute(MESSAGES, messages);
request.getPortletSession(true).setAttribute(MESSAGES, messages);
} catch (Exception e) {
portlet.addErrorMessage(request, portlet.getLocalizedString(request, "activemq.errorMsg03"), e.getMessage());
request.setAttribute(MESSAGES, new JMSMessageInfo[0]);