Configure the webMethods Generic Agent

Supported for: Windows

This task describes the virtualization process, and how to configure the Service Virtualization webMethods Generic agent.

The agent enables you to virtualize one or more steps of a flow service hosted in webMethods Integration Server.

The agent consists of two components:

Java instrumentation Provides an instrumentation of the webMethods Integration Server and captures data exchanged between the service and the remote system it integrates with. You must configure the JVM of the webMethods Integration Server so that it can communicate with the webMethods agent running on the Service Virtualization Server.
webMethods Generic agent Provides an interface between the Java instrumentation component and the Service Virtualization Server.

The Virtualization Process

This section describes the process of virtualizing flow services running on the webMethods Integration Server, as an example.

The scenario we want to virtualize is as follows:

  • The webMethods Integration Server hosts flow services.
  • The flow services use the webMethods Adapter to connect to a remote system.
  • The remote system publishes responses through the webMethods Adapter back to the flow services hosted by the webMethods Integration Server.

When the virtual service is in Learning or Standby mode, the SV Remote Agent on the webMethods Integration Server communicates with Service Virtualization to record or transmit data.

During simulation, the Service Virtualization webMethods Generic agent completely simulates the communication between the webMethods Adapter and the remote system.

Back to top

Configure the webMethods Generic Agent

  1. Prerequisites: webMethods Integration Server 8.2.

  2. Configure the agent settings

    From the main menu, select Tools > Options. On the Agents Page, select webMethods Generic and click Add. Define settings for the new configuration. For user interface details, see the webMethods Generic Agent Settings.

  3. Configure Java Instrumentation

    1. Navigate to the WebMethods folder under the Service Virtualization installation directory. By default:

      For Service Virtualization Server: C:\Program Files\Micro Focus\Service Virtualization Server\Tools\WebMethods

      For the Designer: C:\Program Files\Micro Focus\Service Virtualization Designer\Tools\WebMethods

    2. Copy the following files into the WM_IS_HOME\lib\jars folder in the installation directory of the webMethods Integration Server, for example C:\SoftwareAG\IntegrationServer.

      • HP.SV.JavaBcAgent.jar
      • javassist.jar
      • HP.SV.WmRemote.jar
    3. Add the following to the WM_IS_HOME\bin\server.bat file:

      set JAVA_AGENT=-javaagent:WM_IS_HOME\lib\jars\HP.SV.JavaBcAgent.jar

      set JAVA_OPTS=%JAVA_AGENT% %JAVA_OPTS%

Back to top