【问题标题】:How to configure weblogic reconnect policy in Spring JMS connection factory如何在 Spring JMS 连接工厂中配置 weblogic 重新连接策略
【发布时间】:2017-05-26 09:49:40
【问题描述】:

当 weblogic JMS 服务器出现故障时,我们失去了 JMS 客户端连接。它会导致重新启动我们的客户端托管服务器以重新连接 JMS 服务器。 如何配置 weblogic 重新连接策略?下面是 connectionFactory 和 Message listener 容器的应用上下文配置。

<bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiTemplate" ref="jndiTemplate" />
    <property name="jndiName" value="jndiName" />
</bean>

<bean class="org.springframework.jms.listener.DefaultMessageListenerContainer">
    <property name="connectionFactory" ref="connectionFactory"/>
    <property name="destination" ref="destination0"/>
    <property name="messageListener" ref="messageListener"/>
    <property name="taskExecutor" ref="taskExecutor"/>
    <property name="autoStartup" value="true" />
    <property name="messageSelector" value="RECIPIENT = 'XYZ'"/>
    <property name="concurrentConsumers" value="10"/>
    <property name="maxConcurrentConsumers" value="50"/>
    <property name="idleTaskExecutionLimit" value="10"/>
    <property name="idleConsumerLimit" value="10"/>
</bean>

weblogic 12c 春天 3

【问题讨论】:

    标签: java spring weblogic weblogic12c spring-jms


    【解决方案1】:

    由于您使用的是 JNDI,因此需要在 JNDI 提供程序中进行配置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-17
      • 2015-02-25
      • 2017-10-06
      • 2017-03-13
      • 2015-05-02
      • 2014-05-29
      相关资源
      最近更新 更多