[ https://issues.apache.org/jira/browse/AMQ-6430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15493782#comment-15493782 ]
Daniel Faber commented on AMQ-6430: ----------------------------------- Steps to reproduce: 1. start ActiveMQ: {{~/bin/apache-activemq-5.14.0 $ bin/activemq start}} 2. run attached test application, output is {noformat} message sent: ID:hostname-44638-1473955333904-1:1:2:1:1; body: test-message {noformat} as expected. 3. run test application again, output is {noformat} message sent: ID:hostname-55628-1473955434257-1:1:2:1:1; body: test-message incoming message: ID:hostname-55628-1473955434257-1:1:2:1:1; body: test-message {noformat} but this time I receive my own message which I didn't expect. 4. stop ActiveMQ: {{~/bin/apache-activemq-5.14.0 $ bin/activemq stop}} 5. remove ActiveMQ's data files: {{~/bin/apache-activemq-5.14.0 $ rm -r data/*}} 6. start ActiveMQ: {{~/bin/apache-activemq-5.14.0 $ bin/activemq start}} 7. run test application, output is {noformat} message sent: ID:hostname-46012-1473955651268-1:1:2:1:1; body: test-message {noformat} it seems to work, but.. 8. run test application again, output is {noformat} message sent: ID:hostname-56206-1473955682047-1:1:2:1:1; body: test-message incoming message: ID:hostname-56206-1473955682047-1:1:2:1:1; body: test-message {noformat} again, I receive my own message which I didn't expect. > noLocal=true in durable subscriptions is ignored after reconnect > ---------------------------------------------------------------- > > Key: AMQ-6430 > URL: https://issues.apache.org/jira/browse/AMQ-6430 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.13.4, 5.14.0 > Environment: Ubuntu 14.04, OpenJDK 1.7.0_111 and Oracle JDK 1.8.0.74, > other environments not testet > Reporter: Daniel Faber > Attachments: ActiveMQNoLocalTest.java, pom.xml > > > I create a connection to my local ActiveMQ and open two sessions. In the > first session I create a durable topic subscriber with noLocal=true. In the > second session I send a message to the same topic. Then I close both sessions > and the connection. The first time I do this, everything works well, that > means I send but do not receive the message. The second time I run the same > application I send AND receive the message. > After removing all files and directories in ActiveMQ's data directory, not > receiving my own message works again, but only once. -- This message was sent by Atlassian JIRA (v6.3.4#6332)