Just to make a correction - I did annotate the handler's init() method with 
@PostConstruct. But it was not called by CXF's JAX-WS implementation for some 
reason.

Gang

________________________________________
From: Yang, Gang CTR (US) [[email protected]]
Sent: Wednesday, March 12, 2014 5:06 PM
To: [email protected]
Subject: Jaxws handler init method is not called

Hi,



I'm using CXF 2.6.6 JAX-WS front. I have a simple JAX-WS service and a JAX-WS 
handler, which is hooked with the service via the @HandlerChain. The classes is 
package into a war with cxf-servlet.xml defining the JAX-WS service endpoint 
w/o defining the handler. When the war is deployed into Tomcat 7.0.19, the 
handler default constructor is called, but not the init() method. Is 
@PostConstruct on init() required in CXF? Appreciate any help.



Thanks,

Gang

Reply via email to