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

Next Topic: Configure the SOA Agent Login Module

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

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

To configure an individual web service to invoke the SOA Agent JAX-WS JMS 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.jmsplugin.JaxWsJMSHandler</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.