English 中文(简体)
1. 制定产业政策
原标题:Setting up a retry policy
  • 时间:2011-11-08 11:51:55
  •  标签:
  • mule

我试图制定这样的产业政策:

<spring:beans>
        <spring:bean id="threadingPolicyTemplate"
            class="org.mule.retry.async.AsynchronousRetryTemplate">
            <spring:constructor-arg index="0">
                <spring:bean id="foreverRetryPolicyTemplate"
                    class="com.Component.ChatConnectionRetryPolicyTemplate">
                    <spring:property name="sleepTime" value="${connector.retryInterval}" />
                </spring:bean>
            </spring:constructor-arg>
        </spring:bean>
    </spring:beans>

    <jdbc:connector name="jdbcConnector" dataSource-ref="SQLServerjdbcDataSource">
        <spring:property name="retryPolicyTemplate" ref="threadingPolicyTemplate"/>
        <jdbc:query key="PollDB"
            value="select * from ofMessageArchive where ID >  #[payload:]" />
    </jdbc:connector>

我在我的行程中把这个联系人当作一个很强的终点,但我看不出重新产业政策甚至被称作。 (一) 点间断点,不叫他们。

我正在使用某种翻新的<代码>。 简单RetryPolicy(无弹性)。

还有一个问题涉及这一问题——假设联系人没有启动(正在尝试采取报复政策)——将联系人用作终点的流量会发生什么?

mu如何对待这些事情?

最佳回答
  • 即使JdbcConnector没有办法采用内心/起步/停用/处置方法,你的再产业政策模板也应在“电离”号之后被称作正确。 你们是否希望打破这一位置,然后走下去?

  • 如果你采用已翻新的再产业政策,那么即使连线人失败,穆莱也会开始。 视这一连接点而定的有限制的终点不会开始,因此,在连接者能够开始之前,使用这些连接点的流量才会启动。 定点外定点将带来例外:它要求你处理这种情况,要么是预选,要么是例外策略,对问题进行某种处理。

问题回答

暂无回答




相关问题
Mule ESB - How to get MimeMessage instead of MimeBodyPart?

I m trying to get the FROM email address in Mule ESB. I m getting the retrieved object as MimeBodyPart, I d like to have MimeMessage instead. How to do this? Any solution - either in Mule or Java is ...

JaxWsProxyFactoryBean for Mule CXF transport?

I am new to mule. Are there any way to call CXF based web services using JaxWsProxyFactoryBean? It will be nice to reuse Java interface instead of wsdl files. With CXF we can simply reuse our java ...

Drools, spring and mule

Has anyone combined these technologies? Could you share lessons learnt?

How to keep inbound host with custom Mule ESB router

I created a custom router with one endpoint. The custom router looks up the destination of the endpoint based on the URL parameters of the inbound URL. I have an example of this up and running, and I ...

热门标签