Monitoring Message Runtime Information Querying Messages

Monitoring JMS Statistics and Managing Messages 8-5 page, you can select a message to display its contents, create new messages, delete one or more messages, move messages, import and export messages, and drain delete all of the messages from the queue or durable subscription. For more information on using the Administration Console to manage messages on standalone queues, distributed queues, and durable subscribers, see the following instructions in the Oracle WebLogic Server Administration Console Help: ■ Manage queue messages ■ Manage distributed queue messages ■ Manage topic durable subscribers Each message management function is described in detail in the following sections.

8.2.2.1 Monitoring Message Runtime Information

By default, the JMS Message Management page displays the information about each message on a queue or durable subscriber in a table with the following columns. ■ ID - A unique identifier for the message. ■ Type - The JMS message type, such as BytesMessage, TextMessage, StreamMessage, ObjectMessage, MapMessage, or XMLMessage. ■ CorrId - A correlation ID is a user-defined identifier for the message, often used to correlate messages about the same subject ■ Priority - An indicator of the level of importance or urgency of the message, with 0 as the lowest priority and 9 as the highest. Usually, 0-4 are gradients of normal priority and 5-9 are gradients of expedited priority. Priority is set to 4 by default. ■ Timestamp - The time the message arrived on the queue. You can change the order in which the columns are listed and choose which of the columns will be included in and which excluded from the display. You can also increase the number of messages displayed on the page from 10 default to 20 or 30. By default, messages are displayed in the order in which they arrived at the destination. You can choose to display the messages in either ascending or descending order by message ID instead by clicking on the ID column header. However, you cannot restore the initial sort order once you have altered it; you must return to the JMS System Module Resources page and reselect the queue to see the messages in order of arrival again.

8.2.2.2 Querying Messages

The Message Selector field at the top of the JMS Message Management page enables you to filter the messages on the queue based on any valid JMS message header or property with the exception of JMSXDeliveryCount. A message selector is a boolean expression. It consists of a String with a syntax similar to the where clause of an SQL select statement. The following are examples of selector expressions. salary 64000 and dept in eng,qa product like WebLogic or product like T3 and version 3.0 hireyear between 1990 and 1992 or fireyear is not null fireyear - hireyear 4 8-6 Configuring and Managing JMS for Oracle WebLogic Server For more information about the message selector syntax, see the javax.jms.Message Javadoc, available at http:java.sun.comjavaee5docsapijavaxjmsMessage.html .

8.2.2.3 Moving Messages