2017-05-26 126 views
1

当weblogic JMS服务器关闭时,我们失去了JMS客户端连接。它导致重新启动我们的客户端托管服务器以重新连接JMS服务器。 如何配置weblogic重新连接策略?以下是connectionFactory和Message listener容器的应用程序上下文配置。如何在Spring JMS连接工厂中配置weblogic重新连接策略

<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

回答

0

由于您使用JNDI,你需要配置它的JNDI提供商。