Subscriber receives messages that sent by itself even if noLocal is true.
-------------------------------------------------------------------------
Key: AMQ-2561
URL: https://issues.apache.org/activemq/browse/AMQ-2561
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.2.0
Reporter: SuoNayi Wang
1, use org.springframework.jms.connection.SingleConnectionFactory to wrap
org.apache.activemq.spring.ActiveMQConnectionFactory so that we only use single
connection.
2, use org.springframework.jms.core.JmsTemplate to send a simple text message.
3, use org.springframework.jms.listener.DefaultMessageListenerContainer to
receive message,
<bean id="defaultMessageListenerContainer"
class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory"/>
<property name="sessionTransacted" value="true"/>
<property name="pubSubDomain" value="true"/>
<property name="pubSubNoLocal" value="true"/>
<property name="destination" ref="topicDestination"/>
<property name="subscriptionDurable" value="true"/>
<property name="durableSubscriptionName" value="bus.topic"/>
<property name="messageListener">
<bean
class="com.sinosoft.activemq.listener.DefaultMessageListener"/>
</property>
</bean>
4, messageListener receive messages sent by itself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.