0 Replies Latest reply on Feb 15, 2012 12:00 AM by csariedd

    init-param via HandlerInfo in SOAPHandler

    csariedd

      Hi,

       

      I've been looking into javax.xml.ws.handler on JBoss EAP 5.1

      I am not sure how to access HandlerInfo to get a param

       

      I have the following:

      handler.xml
      <handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
         <handler-chain>
            <handler>
                     <handler-name>foo</handler-name>
               <handler-class> Class </handler-class>
                           <init-param>
                  <param-name>foo</param-name>
                  <param-value>bar</param-value>
               </init-param>
            </handler>
         </handler-chain>
      </handler-chains>
      

       

      Handler.java
      public class      Class
             implements SOAPHandler< SOAPMessageContext >
      {
         private HandlerInfo handlerInfo;
          private String foo;
      
      
         public void init (HandlerInfo info)
         {
            handlerInfo = info;
            foo = (String) info.getHandlerConfig().get( "foo" );
         }
      }
      

       

      Obviously HandlerInfo is not seen

      import javax.xml.rpc.handler.*;
      

      statement is not found within JBOSS EAP 5.1!!!

       

      I have included the ant path but still it doesn't find the reference

      <pathelement location="${JBOSS_HOME}/client/jboss-jaxrpc-api_1.1_spec.jar"/>
      <pathelement location="${JBOSS_HOME}/common/lib/jboss-jaxrpc-api_1.1_spec.jar"/>
      

       

      The question is:

      1. How do I read the param foo from the handler?

       

      Many thanks