If you are testing a Java™ application
that uses the Java Message Service
(JMS) interface, you can use IBM® 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
- In Rational Integration Tester,
open the Recording Studio perspective.
- Create a recording monitor for the logical JMS domain.
- Start a recording session: from the toolbar of the Events
View window, click the Start Recording () icon. A JMS recording
rule is registered with Rational Test Control Panel.
- Check the recording rules and their content: on the Agents page
of Rational Test Control Panel,
click Show rules.
- While you are still on the Agents page,
verify that the recording has started.
- Wait for recorded events. Depending on the Java application that you are testing, you might
have to use the application to generate events.
- Stop the recording session: from the toolbar of the Events
View window, click the Pause recording () icon.
Results
In Recording Studio, you can save the recorded events as
a test, stub, or other project resource by using the Recorded Events
wizard.