<%@ taglib uri="http://jakarta.apache.org/taglibs/jms-1.0" prefix="jms" %> Receive Message Tool <% String connection = request.getParameter( "connection" ); if ( connection == null ) { connection = "topic"; } String destination = request.getParameter( "destination" ); if ( destination == null ) { destination = ""; } long timeout = -1L; String timeoutText = request.getParameter( "timeout" ); if ( timeoutText != null && timeoutText.length() > 0 ) { try { timeout = Long.parseLong( timeoutText ); } catch (Exception e) { } } else { timeoutText = ""; } %>

Receive JMS Message

Enter the details to receive

Connection name:
Destination:
Timeout (millis):

<% if (connection.length() > 0 && destination.length() > 0 ) { %>

Waiting for message....

<% out.flush(); %>

Received the following message.

<%= pageContext.getAttribute( "msg" ) %>


<% } %>