MQTopicConnectionFactory
및 MQQueueConnectionFactory
을 각각 캐시 크기가 10으로 설정 한 CachingConnectionFactory
을 구성했습니다.WebSphere MQ를 사용하여 JMS 연결이 고갈되었습니다.
내 응용 프로그램에있는 다양한 스프링 통합 워크 플로의 일부로 여러 jms:outbound-channel-adapter or jms:message-driven-channel-adapter
에 사용 된 것보다 많습니다.
프로세스가 작동을 멈 추면 MQ 채널의 연결 수가 최대 허용치 (약 1000)에 도달하는 것을 알 수 있습니다. 이는 프로덕션 응용 프로그램에 심각한 문제입니다.
응용 프로그램을 중지해도 연결 수가 줄어들지 않으므로 MQ 측의 연결이 끊어져 보입니까? 이 문제를 해결할 수있는 스프링 jms/SI 구성에서 누락 된 부분이 있는지 확실하지 않습니다. 도움을 주시면 감사하겠습니다.
또한 응용 프로그램과의 연결을 열고 닫고 싶지만 그렇게 할 수있는 방법은 없습니다.
<bean id="mqQcf" class="com.ibm.mq.jms.MQQueueConnectionFactory">
//all that it needs host/port/ queue manager /channel
</bean>
<bean id="qcf" class="org.springframework.jms.connection.CachingConnectionFactory">
\t \t \t <property name="targetConnectionFactory" ref=" mqQcf "/>
\t \t \t <property name="sessionCacheSize" value="10"/> \t \t \t
</bean>
<bean id="mqTcf" class="com.ibm.mq.jms.MQTopicConnectionFactory">
//all that it needs host/port/ queue manager /channel
</bean>
<bean id="tcf" class="org.springframework.jms.connection.CachingConnectionFactory">
\t \t \t <property name="targetConnectionFactory" ref=" mqTcf "/>
\t \t \t <property name="sessionCacheSize" value="10"/> \t \t \t
</bean>
//Qcf and tcf are than used in spring integration configuration as required
감사
어떤 해결 방법이 있습니까? – haju