0
를 I가 AbstractSoapInterceptor을 연장 CXF 인터셉터로부터 메시지를 기록하려고하고 AbstractSoapInterceptor는 CXF 작동하지된다 cxfEndpoint
`<cxf:cxfEndpoint id="reportEndpoint" address="/report/"
serviceClass="com.shajeer.integration.helloworld.incident.IncidentService">
<cxf:inInterceptors>
<bean id="inInterceptor"
class="com.shajeer.integration.helloworld.logging.LoggingInSetupInterceptor" />
</cxf:inInterceptors>
</cxf:cxfEndpoint>`
Blueprint.xml
체인에 인터셉터 그런 인터셉터 추가 한
`import org.apache.cxf.binding.soap.SoapMessage;
import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor;
import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.phase.Phase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LoggingInSetupInterceptor extends AbstractSoapInterceptor{
private static final Logger LOGGER = LoggerFactory.getLogger(LoggingInSetupInterceptor.class);
public LoggingInSetupInterceptor() {
super(Phase.PRE_INVOKE);
}
@Override
public void handleMessage(SoapMessage soapMessage) throws Fault {
System.out.println("In LoggingInSetupInterceptor :: LoggingInSetupInterceptor");
LOGGER.info("In LoggingInSetupInterceptor :: LoggingInSetupInterceptor");
}
}`
그러나 제어 흐름은 하야 요격기에 도착하여 낙타 상황에 직접 빠져 든다. 그 이유는 무엇일까요?
`xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf"`