小编oei*_*eil的帖子

org.apache.camel.ExchangeTimedOutException:未收到OUT消息:30000毫秒

我正在尝试使用fuse esb + apache camel + seda/activemq公开一个Web服务,我正面临一个将状态消息撤回到Web服务调用的问题.

这是我简单的骆驼路线:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/cxf"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
    http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd">

    <cxf:cxfEndpoint id="msgInEndpoint" address="http://localhost:9000/msgin/"
        serviceClass="com.test.jaxws.MsgInEndpoint">
    </cxf:cxfEndpoint>

    <camelContext xmlns="http://camel.apache.org/schema/spring">
        <route id="control">
            <from uri="cxf:bean:msgInEndpoint" />
            <to uri="log:incomingMsgIn" />
            <to uri="seda:OpCon.MSGIN" />
            <transform>
                <constant>OK</constant>
            </transform>
        </route>
    </camelContext>
</beans>
Run Code Online (Sandbox Code Playgroud)

当我使用soapUI执行Web服务请求时,在发生超时问题时:

Exhausted after delivery attempt: 1 caught: org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis. 
Run Code Online (Sandbox Code Playgroud)

堆栈跟踪原因:

Caused by: org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis. Exchange[Message: $CONSOLE:DISPLAY,test]
    at org.apache.camel.component.seda.SedaProducer.process(SedaProducer.java:112)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
    at …
Run Code Online (Sandbox Code Playgroud)

apache-camel fuseesb apache-servicemix

3
推荐指数
1
解决办法
9017
查看次数

标签 统计

apache-camel ×1

apache-servicemix ×1

fuseesb ×1