Sender component is used to publish JMS messages (on its output port) to measure the performance. The rate at which the messages are published depends upon the message size, number of connections, sessions, producers, and so on. This component can be configured using the Runtime Argument parameters and logs can be checked to monitor performance.
Configuration
The Sender component does not have a Configuration Property Sheet; it accepts certain parameters as Runtime Arguments.
Runtime Arguments
From eStudio, select the component and go to Runtime Arguments tab in Properties panel to configure Runtime Arguments.
Figure 1: Screenshot showing the Sender properties
Argument Name | Description |
---|---|
totalMessageCount | Number of messages to be published on the output port. |
isTransacted | Whether the session is transacted or not (true/false). |
transactionSize | Number of messages to be transacted at a time. The default value is 1. |
msgSize | Size of the message (in Bytes) to be published. Default message is sent in case XML file path is not provided. |
xmlFilePath | Location of the XML file to be sent as the message content. If the path is not provided, then the component sends the default XML message to its output port. |
numConnections | Number of connections to be created. |
numSessions | Number of sessions to be created. |
numProducers | Number of producers to be created. |
Functional Demonstration
Scenario 1
Scenario demonstration of Sender which is configured to send 1000 messages. Sender by default sends an XML message if we do not provide the xmlFilePath runtime argument.
Configure the Sender following the Configuration section to send 1000 messages and use a Display component to check the response.
Figure 2: Scenario demonstration showing sample output and performance numbers
Useful Tips
- NumProducers should be >= NumSessions and NumSessions should be >= NumConnections, otherwise, it becomes a waste of resources. Producers are uniformly distributed over Sessions and Sessions over Connections.
- The component automatically stops once all the messages are sent.
- If the xmlFilePath is not provided in the Runtime Arguments, then a random message is generated of size msgSize as specified in Runtime Arguments.
- msgSize cannot be negative if xmlFilePath is not provided. If xmlFilePath is provided, msgSize's value is not considered for the execution of the service.