Recording JMS by using the Client Agent
If you are testing a Java™ application that uses the Java™ Message Service (JMS) interface, you can use Rational® Integration Tester to record the transport.
Procedure
-
Prepare the JMS application
- Install and configure the Java™ virtualization agent and install the agent into the Java™ application. For more information, see Installing a Java virtualization agent into a Java application.
-
Prepare
Rational® Integration
Tester
- In Library Manager, ensure that the Java™ client libraries from the JMS provider are configured correctly. By completing these steps Rational® Integration Tester can communicate with a physical JMS server.
- In the Architecture School perspective, open the Logical view and then create a JMS topic, queue or destination domain, as appropriate. Optionally, filter queues or topics by specifying a queue or topic prefix on the Recording Studio tab of the JMS Domain.
- In the Physical View of the Architecture School, create a physical JMS Broker.
- Bind the logical and physical resources in a new or current environment. For more information, see Creating a Java Message Service (JMS) broker.
- While you are still in the Physical View, configure the JMS transport. For more information, see Recording and stubbing settings. For the recording mode, select Client Agent.
- Import schemas so that Rational® Integration Tester can apply them to the recorded messages. For information on adding schema for JMS Java™ object messages, see Adding Java object schemas. A schema is not required for a JMS Map message, as it has a known format.
-
Record the application
Results
In Recording Studio, you can save the recorded events as a test, stub, or other project resource by using the Recorded Events wizard.