QueuedMessage instead, as this package may be removed in the future.public class RQueuedMessage extends Resource
ALERT_OPTION
DATE_SENT
DEFAULT_REPLY
MESSAGE_FILE
MESSAGE_HELP
MESSAGE_ID
MESSAGE_KEY
MESSAGE_QUEUE
MESSAGE_SEVERITY
MESSAGE_TEXT
MESSAGE_TYPE
REPLY_STATUS
SENDER_JOB_NAME
SENDER_USER_NAME
SENDER_JOB_NUMBER
SENDING_PROGRAM_NAME
SUBSTITUTION_DATA
Use any of these attribute IDs with
getAttributeValue()
to access the attribute values for an RQueuedMessage.
// Create an RMessageQueue object to refer to a specific message queue.
AS400 system = new AS400("MYSYSTEM", "MYUSERID", "MYPASSWORD");
RMessageQueue messageQueue = new RMessageQueue(system, "/QSYS.LIB/MYLIB.LIB/MYMSGQ.MSGQ");
// Get the first RQueuedMessage from the RMessageQueue.
RQueuedMessage queuedMessage = messageQueue.resourceAt(0);
// Get the message text from the RQueuedMessage.
String messageText = (String)queuedMessage.getAttributeValue(RQueuedMessage.MESSAGE_TEXT);
RMessageQueue, 
RJobLog, 
Serialized Form| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | ALERT_OPTIONDeprecated.  Attribute ID for alert option. | 
| static java.lang.String | ALERT_OPTION_DEFERDeprecated.  Constant for  ALERT_OPTIONattribute value -
    An alert is sent after local problem analysis. | 
| static java.lang.String | ALERT_OPTION_IMMEDIATEDeprecated.  Constant for  ALERT_OPTIONattribute value -
    An alert is sent immediately when the message is sent to a message queue
    that has the allows alerts. | 
| static java.lang.String | ALERT_OPTION_NODeprecated.  Constant for  ALERT_OPTIONattribute value -
    No alert is sent. | 
| static java.lang.String | ALERT_OPTION_UNATTENDEDDeprecated.  Constant for  ALERT_OPTIONattribute value -
    An alert is sent immediately when the system is running in unattended mode. | 
| static java.lang.String | DATE_SENTDeprecated.  Attribute ID for date sent. | 
| static java.lang.String | DEFAULT_REPLYDeprecated.  Attribute ID for default reply. | 
| static java.lang.String | MESSAGE_FILEDeprecated.  Attribute ID for message file. | 
| static java.lang.String | MESSAGE_HELPDeprecated.  Attribute ID for message help. | 
| static java.lang.String | MESSAGE_IDDeprecated.  Attribute ID for message ID. | 
| static java.lang.String | MESSAGE_KEYDeprecated.  Attribute ID for message key. | 
| static java.lang.String | MESSAGE_QUEUEDeprecated.  Attribute ID for message queue. | 
| static java.lang.String | MESSAGE_SEVERITYDeprecated.  Attribute ID for message severity. | 
| static java.lang.String | MESSAGE_TEXTDeprecated.  Attribute ID for message text. | 
| static java.lang.String | MESSAGE_TYPEDeprecated.  Attribute ID for message type. | 
| static java.lang.String | REPLY_STATUSDeprecated.  Attribute ID for reply status. | 
| static java.lang.String | REPLY_STATUS_ACCEPTS_NOT_SENTDeprecated.  Constant for  REPLY_STATUSattribute value -
    Message accepts a reply, and a reply has not been sent. | 
| static java.lang.String | REPLY_STATUS_ACCEPTS_SENTDeprecated.  Constant for  REPLY_STATUSattribute value -
    Message accepts a reply, and a reply has been sent. | 
| static java.lang.String | REPLY_STATUS_NOT_ACCEPTDeprecated.  Constant for  REPLY_STATUSattribute value -
    Message does not accept a reply. | 
| static java.lang.String | SENDER_JOB_NAMEDeprecated.  Attribute ID for sender job name. | 
| static java.lang.String | SENDER_JOB_NUMBERDeprecated.  Attribute ID for sender job number. | 
| static java.lang.String | SENDER_USER_NAMEDeprecated.  Attribute ID for sender user name. | 
| static java.lang.String | SENDING_PROGRAM_NAMEDeprecated.  Attribute ID for sending program name. | 
| static java.lang.String | SUBSTITUTION_DATADeprecated.  Attribute ID for substitution data. | 
| Constructor and Description | 
|---|
| RQueuedMessage()Deprecated.  Constructs an RQueuedMessage object. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | load(int helpTextFormatting)Deprecated.  Reload message help text. | 
addActiveStatusListener, addPropertyChangeListener, addResourceListener, addVetoableChangeListener, arePropertiesFrozen, equals, establishConnection, fireAttributeValuesRefreshed, fireBusy, fireIdle, firePropertyChange, fireVetoableChange, freezeProperties, getAttributeMetaData, getAttributeMetaData, getAttributeValue, getAttributeValue, getPresentation, getResourceKey, getSystem, initializeAttributeValue, isBidiEnabled, isConnectionEstablished, refreshAttributeValues, removeActiveStatusListener, removePropertyChangeListener, removeResourceListener, removeVetoableChangeListener, setPresentation, setResourceKey, setSystem, toStringpublic static final java.lang.String ALERT_OPTION
ALERT_OPTION_DEFER - An alert is sent after
    local problem analysis.
ALERT_OPTION_IMMEDIATE - An alert is sent immediately
    when the message is sent to a message queue that has the allows alerts.
ALERT_OPTION_NO - No alert is sent.
ALERT_OPTION_UNATTENDED - An alert is sent immediately
    when the system is running in unattended mode.
public static final java.lang.String ALERT_OPTION_DEFER
ALERT_OPTION attribute value -
    An alert is sent after local problem analysis.public static final java.lang.String ALERT_OPTION_IMMEDIATE
ALERT_OPTION attribute value -
    An alert is sent immediately when the message is sent to a message queue
    that has the allows alerts.public static final java.lang.String ALERT_OPTION_NO
ALERT_OPTION attribute value -
    No alert is sent.public static final java.lang.String ALERT_OPTION_UNATTENDED
ALERT_OPTION attribute value -
    An alert is sent immediately when the system is running in unattended mode.public static final java.lang.String DATE_SENT
public static final java.lang.String DEFAULT_REPLY
public static final java.lang.String MESSAGE_FILE
QSYSObjectPathName, 
Constant Field Valuespublic static final java.lang.String MESSAGE_HELP
public static final java.lang.String MESSAGE_ID
public static final java.lang.String MESSAGE_KEY
public static final java.lang.String MESSAGE_QUEUE
QSYSObjectPathName, 
Constant Field Valuespublic static final java.lang.String MESSAGE_SEVERITY
public static final java.lang.String MESSAGE_TEXT
public static final java.lang.String MESSAGE_TYPE
public static final java.lang.String REPLY_STATUS
REPLY_STATUS_ACCEPTS_SENT -
    Message accepts a reply, and a reply has been sent.
REPLY_STATUS_ACCEPTS_NOT_SENT -
    Message accepts a reply, and a reply has not been sent.  (The message
    is waiting for a reply.)
REPLY_STATUS_NOT_ACCEPT -
    Message does not accept a reply.
public static final java.lang.String REPLY_STATUS_ACCEPTS_SENT
REPLY_STATUS attribute value -
    Message accepts a reply, and a reply has been sent.public static final java.lang.String REPLY_STATUS_ACCEPTS_NOT_SENT
REPLY_STATUS attribute value -
    Message accepts a reply, and a reply has not been sent.  (The message
    is waiting for a reply.)public static final java.lang.String REPLY_STATUS_NOT_ACCEPT
REPLY_STATUS attribute value -
    Message does not accept a reply.public static final java.lang.String SENDER_JOB_NAME
public static final java.lang.String SENDER_USER_NAME
public static final java.lang.String SENDER_JOB_NUMBER
public static final java.lang.String SENDING_PROGRAM_NAME
public static final java.lang.String SUBSTITUTION_DATA
public RQueuedMessage()
public void load(int helpTextFormatting)
          throws AS400SecurityException,
                 ErrorCompletingRequestException,
                 java.io.IOException,
                 java.lang.InterruptedException,
                 ObjectDoesNotExistException
helpTextFormatting - Formatting performed on the help text.  Valid
             values for this parameter are defined in the MessageFile
             class.  They are no formatting, return formatting characters,
             and replace (substitute) formatting characters.AS400SecurityException - If a security or authority error occurs.ErrorCompletingRequestException - If an error occurs before the request is completed.java.io.IOException - If an error occurs while communicating with the system.java.lang.InterruptedException - If this thread is interrupted.ObjectDoesNotExistException - If the system object does not exist.