Previous Topic: Configure SOA Agent Security Interceptor Protection for JAX-RPC Web Services Over HTTP Transport

Next Topic: Configure the SOA Agent JAX-RPC HTTP Handler for a Single Web Service

Configure the SOA Agent JAX-RPC HTTP Handler for all JAX-RPC HTTP Web Services

To configure the SOA Agent JAX-RPC Handler to be invoked for all JAX-RPC HTTP web services, add the SOA agent JAX-RPC Handler class (com.ca.soa.agent.jaxrpcplugin.JaxrpcHandler) to the standard JAX-RPC endpoint configuration file, standard-jaxrpc-endpoint-config.xml.

The default standard-jaxrpc-endpoint-config.xml file is located in one of the following locations, depending on your version of JBoss:

To add the SOA Agent JAX-RPC Handler to the standard JAX-RPC endpoint configuration file

  1. Navigate to the location of the standard-jaxrpc-endpoint-config.xml file for your JBoss version and instance type.
  2. Open the standard-jaxrpc-endpoint-config.xml file in a text editor.
  3. Add the following javaee:handler element to the "Standard Endpoint" endpoint-config element as the first such element defined.
    <handler>
       <j2ee:handler-name>SM XMLAgentJaxrpc Handler</j2ee:handler-name>
       <j2ee:handler-class>
         com.ca.soa.agent.appserver.jaxrpc.XMLAgentJaxrpcHandler
       </j2ee:handler-class>
    </handler>
    
  4. Save the file and exit the text editor.

The JBoss SOA Agent JAX-RPC Handler will be invoked for all JAX-RPC web services.

Example standard-jaxrpc-endpoint-config.xml file

<jaxrpc-config xmlns="urn:jboss:jaxrpc-config:2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
xsi:schemaLocation="urn:jboss:jaxrpc-config:2.0 jaxrpc-config_2_0.xsd">

<endpoint-config>
  <config-name>Standard Endpoint</config-name>
    <pre-handler-chain>
      <handler-chain-name>SM XMLAgentJaxrpc Handlers</handler-chain-name>
      <handler>
        <j2ee:handler-name>SM XMLAgentJaxrpc Handler</j2ee:handler-name>
        <j2ee:handler-class>
          com.ca.soa.agent.appserver.jaxrpc.XMLAgentJaxrpcHandler
        </j2ee:handler-class>
      </handler>
    </pre-handler-chain>
  </endpoint-config>

</jaxrpc-config>