나는 virtualtopic topic.vt.order 와 두 개의 consumerqueues topic.vt.order.consumer.A 및 topic.vt.order.consumer.B가 있습니다. 내 문제는 소비자 대기열 이 내 주제 topic.vt.order에 보내는 메시지를받지 못한다는 것 입니다.
다음은 내 구성입니다 (activemq.xml).
<destinationInterceptors>
<virtualDestinationInterceptor>
<virtualDestinations>
<virtualTopic name="topic.vt.>" postfix=".consumer.*" selectorAware="false"/>
</virtualDestinations>
</virtualDestinationInterceptor>
</destinationInterceptors>
도와 주셔서 감사합니다!
이제 작동합니다! 여기에서 내 구성을 볼 수 있습니다.
<destinationInterceptors>
<virtualDestinationInterceptor>
<virtualDestinations>
<virtualTopic name="topic.vt.>" postfix=".consumer.*" prefix="" selectorAware="false"/>
</virtualDestinations>
</virtualDestinationInterceptor>
</destinationInterceptors>
"접두사"속성에 대한 값을 설정해야합니다. 공백으로 설정하면 작동합니다!
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다