Java Spring Integration没有响应服务

时间:2013-10-04 21:27:53

标签: java jax-rs spring-integration

在我正在运作的当前项目中,我们已经开始遇到来自其他服务的响应问题,他们在我们启动一组测试后目前没有响应。

我们在集成测试开始后就会遇到这些问题。

我们的配置如下:     Spring 3.0.6     Spring-Integration 2.2.0     是8.5     DB2     JAX-RS

这是来自我们的spi文件的示例。

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

<!-- Input and Output Channels TransactionFlow -->
<int:channel id="inputAddPaymentGroupChannel" />

<int:channel id="ouputAddPaymentGroupChannel">
    <int:queue capacity="10" />
</int:channel>

<!-- Internal Steps Channels -->
<int:channel id="sessionAddPaymentGroupChannel" />
<int:channel id="operationAddPaymentGroupChannel" />

<!-- Error channels -->
<int:channel id="errorAddPaymentGroupChannel" />

<!-- Gateway -->
<int:gateway default-reply-timeout="5000" id="AddPaymentGroupGateway" error-channel="errorAddPaymentGroupChannel"
    service-interface="bank.bancamovil.web.business.gateway.AddPaymentGroupGateway"
    default-request-channel="inputAddPaymentGroupChannel"
    default-reply-channel="ouputAddPaymentGroupChannel"  />

<!-- Services activator -->
<int:service-activator input-channel="inputAddPaymentGroupChannel"
    output-channel="sessionAddPaymentGroupChannel" ref="SessionService"
    method="validateSessionUser" />

<!-- Validate Operation -->
<int:service-activator input-channel="sessionAddPaymentGroupChannel"
    output-channel="operationAddPaymentGroupChannel" ref="OperationService" method="validateOperationPayment" />

<int:service-activator input-channel="operationAddPaymentGroupChannel"
output-channel="ouputAddPaymentGroupChannel" ref="AddPaymentGroupService" method="addPaymentGroupService" />

<!-- Error Service activator -->
<int:service-activator input-channel="errorAddPaymentGroupChannel"
    output-channel="ouputAddPaymentGroupChannel" ref="AddPaymentGroupService" method="errorAddPaymentGroup" />

<!-- Beans definition -->
<beans:bean id="SessionService"
    class="bank.bancamovil.web.business.services.device.SessionService" />
<beans:bean id="OperationService"
    class="bank.bancamovil.web.business.services.operation.OperationService" />
<beans:bean id="AddPaymentGroupService"
    class="bank.bancamovil.web.business.services.sharedPayment.AddPaymentGroupService" />

0 个答案:

没有答案