This topic provides a reference for configuring SOAtest for popular JMS providers.
Sections include:
Table of Contents | ||
---|---|---|
|
...
You can create a Messaging Client and send/receive messages for one of the queues that were already defined. You will be able to also see all the expected JMS header properties, including message IDs.
Script Variables
The following table describes the variables used in the script:
...
| Access key credentials for CLI, SDK, and API access. |
---|---|
serialNumber | Number that uniquely identifies the device if multi-factor authentication (MFA) is enabled. For virtual MFA devices, the serial number is the Amazon resource name (ARN) of the device as shown on the AWS security credentials page. |
tokenCode | The value returned by your MFA device, such as Google Authenticator. |
durationSeconds | The value specifying how long the temporary MFA credentials will be valid. |
Changing the Consumer Polling Interval
The message consumer for the SQS JMS client uses a default long polling interval of 20 seconds. This means that it can take up to 20 seconds to receive a message from a queue, even if the message shows up before then. The polling interval can be changed with a script. Example (Groovy):
Code Block | ||
---|---|---|
| ||
import com.amazon.sqs.javamessaging.SQSMessageConsumerPrefetch
void setMessageConsumerWaitTime() {
SQSMessageConsumerPrefetch.WAIT_TIME_SECONDS = 1
} |
Apache ActiveMQ
Scroll Table Layout | ||
---|---|---|
|
...