JProfiler API documentation



com.jprofiler.api.agent
Interface Controller.JMSResolver

Enclosing class:
Controller

public static interface Controller.JMSResolver

Interface for mapping JMS messages to strings that are displayed in the JProfiler GUI.


Method Summary
 java.lang.String getMessageDescription(java.lang.Object message)
          Maps a JMS message object to a string.
 

Method Detail

getMessageDescription

java.lang.String getMessageDescription(java.lang.Object message)
Maps a JMS message object to a string. JMS messages with the same description are cumulated by JProfiler. Since the JMS subsystem is not always present, the parameter is a java.lang.Object rather than a javax.jms.Message and has to be casted manually to javax.jms.Message.

Example: To see all individual message in JProfiler, register a JMSResolver that returns message.getJMSMessageID().

Parameters:
message - the message object. This is guaranteed to be an object of class javax.jms.Message.
Returns:
the string that should be displayed in the JProfiler GUI