Search code examples
restcxfapache-axisjax-rswso2

WSO2 AS: get Axis2 MessageContext in CXF?


I deploy JAX-RS service to CXF (WSO2 AS 5.1.0) as WAR-file.
Also I have Axis2 Handler deployed as module (MAR) which used to modify Axis2 MessageContext in IN/OUT flows.
How can I get Axis2 MessageContext from JAX-RS service?


Solution

  • This is not possible. By design we don't allow to access Axis2 MessageContext from tomcat container where the JAX-RS service is running.