Previous Topic: Configure the SOA Agent JAX-WS HTTP Handler for all JAX-WS HTTP Web Services

Next Topic: Configure SOA Agent Security Interceptor Protection for JAX-WS Web Services Over JMS Transport (JBoss 5.x)

Configure the SOA Agent JAX-WS HTTP Handler for a Single JAX-WS HTTP Web Service

You can configure individual JAX-WS HTTP web services to invoke the SOA Agent JAX-WS Handler.

To configure an individual web service to invoke the SOA Agent JAX-WS Handler

  1. Create a handler chain configuration file, for example, Services_handler.xml, containing the following text:
    <?xml version="1.0" encoding="UTF-8"?>
    <handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
      <handler-chain>
        <handler>
          <handler-name>JBoss JAX-WS PEP Interceptor</handler-name>
          <handler-class>com.ca.soa.agent.jaxwsplugin.JaxWsHandler</handler-class>
        </handler>
      </handler-chain>
    </handler-chains>
    
  2. Add the following JWS annotation to the web service JWS file:
    @HandlerChain(file = "Services_handler.xml")
    

The JBoss SOA Agent JAX-WS Handler will be invoked only for this web service.