activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chunyu Hu (JIRA)" <>
Subject [jira] [Commented] (APLO-367) Missing messages for MQTT subscribers if same topic subscribed
Date Wed, 17 Sep 2014 09:58:33 GMT


Chunyu Hu commented on APLO-367:

$cat apollo.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements. See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version
  2.0 (the "License"); you may not use this file except in compliance
  with the License. You may obtain a copy of the License at Unless required by
  applicable law or agreed to in writing, software distributed under
  the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
  OR CONDITIONS OF ANY KIND, either express or implied. See the
  License for the specific language governing permissions and
  limitations under the License.

  For more information on how configure this file please
<broker xmlns="">

    The default configuration with tls/ssl enabled.

  <log_category console="console" security="security" connection="connection" audit="audit"/>

  <authentication domain="apollo"/>
  <!-- Give admins full access -->
  <access_rule allow="admins" action="*"/>
  <access_rule allow="*" action="connect" kind="connector"/>

  <virtual_host id="mybroker">
      You should add all the host names that this virtual host is known as
      to properly support the STOMP 1.1 virtual host feature.

    <!-- Uncomment to disable security for the virtual host -->
    <!-- <authentication enabled="false"/> -->

    <!-- Uncomment to disable security for the virtual host -->
    <!-- <authentication enabled="false"/> -->
    <access_rule allow="users" action="connect create destroy send receive consume"/>

    <!-- You can delete this element if you want to disable persistence for this virtual
host -->
    <leveldb_store directory="${apollo.base}/data"/>


  <web_admin bind=""/>
  <web_admin bind=""/>

  <connector id="tcp" bind="tcp://" connection_limit="100000" protocol="mqtt">
   <mqtt  queue_prefix="/"/>

  <connector id="tls" bind="tls://" connection_limit="100000" protocol="mqtt">
   <mqtt  queue_prefix="/"/>

  <connector id="ws"  bind="ws://"  connection_limit="2000"/>
  <connector id="wss" bind="wss://" connection_limit="2000"/>

  <key_storage file="${apollo.base}/etc/keystore" password="password" key_password="password"/>


> Missing messages for MQTT subscribers if  same topic subscribed
> ---------------------------------------------------------------
>                 Key: APLO-367
>                 URL:
>             Project: ActiveMQ Apollo
>          Issue Type: Bug
>          Components: apollo-mqtt
>    Affects Versions: 1.7
>         Environment: ]# uname -a
> Linux 10-4-11-11 #1 SMP Fri Jan 3 19:15:22 UTC
2014 x86_64 x86_64 x86_64 GNU/Linux
> # cat /etc/redhat-release
> CentOS release 6.5 (Final)
>            Reporter: Chunyu Hu
> Suppose we have 3 terminal sessions A, B, C.
> In session A, we run publish commands.
> $mosquitto_pub -m "hello world" -t '/hello' -u 'admin' -P 'password'
> In session B and C, we run subscribe commands.
> $mosquitto_sub -m "hello world" -t '/hello' -u 'admin' -P 'password'
> Only one subscriber will receive the published messages from A. The sequence is like
> A pub a message
> B receive , but C dose not receive the message. 
> A pub another message,then
> C receive, but B dose not receive the message. 
> ... 

This message was sent by Atlassian JIRA

View raw message