Is it possibe to declare JAX-WS handlers in web.xml ?
Issue
- If one declares the soap handlers like below in the web.xml,
<service-ref>
<description>PMService</description>
<service-ref-name>service/SomeService</service-ref-name>
<service-interface>test.SomeanagementService</service-interface>
<wsdl-file>WEB-INF/wsdl/Someservice.wsdl</wsdl-file>
<handler-chains>
<handler-chain>
<handler>
<handler-name>handler</handler-name>
<handler-class>chain.handler</handler-class>
</handler>
</handler-chain>
</handler-chains>
</service-ref>
and then lookup the WS endpoint like below,
initialCtx = new InitialContext();
Service service=null;
service = (Service) initialCtx.lookup(getJndiContext());
the handler does not get invoked.
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
- 5.x
- JBossWS-CXF
-
JBossWS-Native
-
Redhat JBoss Fuse 6.0
- Apache CXF
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.