User`s guide
queue.
• options – A description of how the message is to be read
◦ destination – The JNDI name of the queue from which the message is to be read.
◦ timeout – The optional duration in milliseconds to wait for a message to arrive if no
message is immediately available. A value of 0 means wait indefinitely while a value
less than 0 means do not wait at all. If not supplied, the default is not to wait.
◦ filter – The optional message filter to be used to choose a message. The default is
not to filter and hence the next available message will be returned.
See also:
• WL.Server.readAllJMSMessages(options)
• WL.Server.writeJMSMessage(options)
• WL.Server.requestReplyJMSMessage(options)
• JMS Adapter
WL.Server.readAllJMSMessages(options)
This API methods reads all JMSText messages from a JMS queue. The messages are consumed
from the queue.
• options – A description of how the messages are to be read
◦ destination – The JNDI name of the queue from which the messages are to be read.
◦ timeout – The optional duration in milliseconds to wait for a message to arrive if no
message is immediately available. A value of 0 means wait indefinitely while a value
less than 0 means do not wait at all. If not supplied, the default is not to wait.
◦ filter – The optional message filter to be used to choose messages. The default is
not to filter and hence the next available message will be returned.
See also:
• WL.Server.readSingleJMSMessage(options)
• WL.Server.writeJMSMessage(options)
• WL.Server.requestReplyJMSMessage(options)
• JMS Adapter
WL.Server.writeJMSMessage(options)
This API method writes a JMSText message to a JMS queue.
• options – The options used to write the message to the queue.
◦ destination – The JNDI name of the queue into which the message will be written.
◦ message – The message to be written to the queue.
▪ body – The body (content) of the message.
▪ properties – The JMS message header properties.
◦ ttl – The optional message time to live. If the message is not consumed from the
queue within this interval, it will self destruct. The interval is measured in milliseconds.
Page 123