Previous Topic: SAP JCo Destination FilteringNext Topic: Create Virtual Services from Web HTTP Transactions


Create Virtual Services from TIBCO ActiveMatrix BusinessWorks Transactions

You can use CA Continuous Application Insight to virtualize a process in TIBCO ActiveMatrix BusinessWorks. When the virtual service is deployed, it substitutes the behavior of process activities with the responses collected in the service image.

The following approaches are supported:

You can generate virtual services that are stateful or stateless. Stateless is recommended. You can control this setting from the Virtual Service Image Recorder and the DevTest Portal.

A virtual service includes the responses that are sent for unknown conversational requests and unknown stateless requests. When you create a virtual service, you can configure the body of these responses. The following list describes the options:

Report "No Match"

Causes an exception to be raised in the virtualized application.

Bypass Virtual Service

Allows the original request to pass straight through, as if the class and method were not virtualized at all.

These procedures assume that the DevTest Java Agent was installed and configured on TIBCO ActiveMatrix BusinessWorks.

Note: For detailed information about installing and configuring the DevTest Java Agent, see Agents. For detailed information about using the Virtual Service Image Recorder and deploying virtual services, see Using CA Service Virtualization.

To virtualize TIBCO ActiveMatrix BusinessWorks from DevTest Workstation:

  1. Go to DevTest Workstation and start the Virtual Service Image Recorder.

    You are prompted to provide basic information.

  2. Specify the names of the service image and virtual service model.
  3. Set the transport protocol to Java.
  4. Click Next.

    You are prompted to select the Java classes to virtualize.

  5. Select the agent and move it into the Connected Agents list.
  6. Expand the Protocols arrow and move the TIBCO BW protocol into the right pane.
  7. Click Next. If necessary, trigger the execution of the TIBCO processes that you want to record. As the processes run, the agent records the activities.
  8. When the recording has completed, click Next and perform the remaining steps in the Virtual Service Image Recorder. You do not need to select a data protocol.

    A service image and virtual service model are created.

  9. Deploy and start the virtual service model.

To virtualize TIBCO ActiveMatrix BusinessWorks from the DevTest Portal:

  1. Trigger the execution of the TIBCO processes.
  2. Add a TIBCO transaction frame to the shelf. You can virtualize the entire conversation by selecting the leftmost frame. You can virtualize a specific activity by selecting the frame that includes the activity name.
  3. Open the shelf.
  4. Click Create VS.
  5. To change the default name, select the name and make your edits, then click LISA--icon_save_check_icon--ICO to save.
  6. If you want all transactions to be treated as stateless, ensure that the check box is selected.
  7. Configure the response for unknown requests.
  8. To view the consolidated transactions, click LISA--icon_expand_ICO.
  9. To delete a consolidated transaction, click LISA--icon_delete--ICO.
  10. Click Create.
  11. Select the project where the virtual service will be created.
  12. Click Create.

Note: For more information about consolidated transactions, see the Consolidation of Transactions When Creating Virtual Services topic.

Example: Virtualize an Add User Process

The following graphic shows a process definition in TIBCO Designer. The process contains the following activities: File Poller, JMS Queue Sender, Confirm, and End.

Screen capture of a process definition in TIBCO Designer.

The File Poller activity monitors a text file. When the file is changed, the activity starts the process.

The JMS Queue Sender activity sends a message to the specified queue.

The following graphic shows a service image that the Virtual Service Image Recorder generated. A conversation with four nodes appears in the Transactions tab. The four nodes correspond to the four activities in the process definition.

Screen capture of a service image.

Each node in the conversation includes an operation field. The value of this field consists of the fully qualified process name and the activity name. In the preceding graphic, the value for the selected node is Tibco:VSE/Processes/AddUser.JMS Queue Sender.

The virtual service model is the default for the Java transport protocol.