Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12129

The subscribed topic is removed if reconnecting to messaging system with legacy-connection-factory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 18.0.0.Final
    • 17.0.0.Alpha1, 17.0.0.Beta1
    • JMS
    • Hide

      1. Setup below configuration in wildfly

      <subsystem xmlns="urn:jboss:domain:messaging-activemq:5.0">
          <server name="default">
              <security enabled="false"/>
              <management jmx-enabled="true" address="jms.queue.activemq.management" jmx-domain="org.activemq" />
              <security-setting name="activemq.management">
                  <role name="admin"/>
              </security-setting>
              <address-setting name="#" dead-letter-address="jms.queue.DLQ" expiry-address="jms.queue.ExpiryQueue" max-size-bytes="10485760000" page-size-bytes="2097152" message-counter-history-day-limit="10"/>
              <http-connector name="http-connector" socket-binding="http" endpoint="http-acceptor"/>
              <http-connector name="http-connector-throughput" socket-binding="http" endpoint="http-acceptor-throughput">
                  <param name="batch-delay" value="50"/>
              </http-connector>
              <remote-connector name="legacy-messaging-connector" socket-binding="legacy-messaging"/>
              <in-vm-connector name="in-vm" server-id="0">
                  <param name="buffer-pooling" value="false"/>
              </in-vm-connector>
              <http-acceptor name="http-acceptor" http-listener="default"/>
              <http-acceptor name="http-acceptor-throughput" http-listener="default">
                  <param name="batch-delay" value="50"/>
                  <param name="direct-deliver" value="false"/>
              </http-acceptor>
              <remote-acceptor name="legacy-messaging-acceptor" socket-binding="legacy-messaging"/>
              <in-vm-acceptor name="in-vm" server-id="0">
                  <param name="buffer-pooling" value="false"/>
              </in-vm-acceptor>
              <jms-topic name="testTopic" entries="topic/newTestTopic java:jboss/exported/topic/newTestTopic" legacy-entries="topic/testTopic jms/topic/testTopic java:jboss/exported/topic/testTopic"/>
              <connection-factory name="InVmConnectionFactory" entries="java:/ConnectionFactory java:jboss/exported/ConnectionFactory" connectors="in-vm"/>
              <connection-factory name="NewRemoteConnectionFactory" entries="java:jboss/exported/jms/NewRemoteConnectionFactory" connectors="http-connector"/>
              <legacy-connection-factory name="legacy-discovery" entries="java:jboss/exported/jms/RemoteConnectionFactory" connectors="legacy-messaging-connector"/>
              <pooled-connection-factory name="activemq-ra" entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory" connectors="in-vm" transaction="xa"/>
          </server>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:remoting:4.0">
          <connector name="legacy-remoting-connector" socket-binding="legacy-remoting"/>
          <http-connector name="http-remoting-connector" connector-ref="default"/>
      </subsystem>
      
      <interfaces>
          <interface name="management">
              <any-address/>
          </interface>
          <interface name="public">
              <any-address/>
          </interface>
          <interface name="messaging-interface">
              <any-address/>
          </interface>
      </interfaces>
      
      <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${my.jboss.port.offset:0}">
          <socket-binding name="legacy-remoting" port="4447"/>
          <socket-binding name="legacy-messaging" interface="messaging-interface" port="5445"/>
          
      </socket-binding-group>
      
      

      2. Use JMS client tool such as JMSToolBox to connect to wildfly messaging system with Apache Active MQ Artemis v2.x and port 5445
      3. Subscribe the topic testTopic
      4. Disconnect to wildfly messaging system
      5. Wait for 30 seconds
      6. Reconnect to wildfly messaging system again
      7. The topic testTopic disappear.

      Show
      1. Setup below configuration in wildfly <subsystem xmlns= "urn:jboss:domain:messaging-activemq:5.0" > <server name= " default " > <security enabled= " false " /> <management jmx-enabled= " true " address= "jms.queue.activemq.management" jmx-domain= "org.activemq" /> <security-setting name= "activemq.management" > <role name= "admin" /> </security-setting> <address-setting name= "#" dead-letter-address= "jms.queue.DLQ" expiry-address= "jms.queue.ExpiryQueue" max-size-bytes= "10485760000" page-size-bytes= "2097152" message-counter-history-day-limit= "10" /> <http-connector name= "http-connector" socket-binding= "http" endpoint= "http-acceptor" /> <http-connector name= "http-connector-throughput" socket-binding= "http" endpoint= "http-acceptor-throughput" > <param name= "batch-delay" value= "50" /> </http-connector> <remote-connector name= "legacy-messaging-connector" socket-binding= "legacy-messaging" /> <in-vm-connector name= "in-vm" server-id= "0" > <param name= "buffer-pooling" value= " false " /> </in-vm-connector> <http-acceptor name= "http-acceptor" http-listener= " default " /> <http-acceptor name= "http-acceptor-throughput" http-listener= " default " > <param name= "batch-delay" value= "50" /> <param name= "direct-deliver" value= " false " /> </http-acceptor> <remote-acceptor name= "legacy-messaging-acceptor" socket-binding= "legacy-messaging" /> <in-vm-acceptor name= "in-vm" server-id= "0" > <param name= "buffer-pooling" value= " false " /> </in-vm-acceptor> <jms-topic name= "testTopic" entries= "topic/newTestTopic java:jboss/exported/topic/newTestTopic" legacy-entries= "topic/testTopic jms/topic/testTopic java:jboss/exported/topic/testTopic" /> <connection-factory name= "InVmConnectionFactory" entries= "java:/ConnectionFactory java:jboss/exported/ConnectionFactory" connectors= "in-vm" /> <connection-factory name= "NewRemoteConnectionFactory" entries= "java:jboss/exported/jms/NewRemoteConnectionFactory" connectors= "http-connector" /> <legacy-connection-factory name= "legacy-discovery" entries= "java:jboss/exported/jms/RemoteConnectionFactory" connectors= "legacy-messaging-connector" /> <pooled-connection-factory name= "activemq-ra" entries= "java:/JmsXA java:jboss/DefaultJMSConnectionFactory" connectors= "in-vm" transaction= "xa" /> </server> </subsystem> <subsystem xmlns= "urn:jboss:domain:remoting:4.0" > <connector name= "legacy-remoting-connector" socket-binding= "legacy-remoting" /> <http-connector name= "http-remoting-connector" connector-ref= " default " /> </subsystem> <interfaces> < interface name= "management" > <any-address/> </ interface > < interface name= " public " > <any-address/> </ interface > < interface name= "messaging- interface " > <any-address/> </ interface > </interfaces> <socket-binding-group name= "standard-sockets" default - interface = " public " port-offset= "${my.jboss.port.offset:0}" > <socket-binding name= "legacy-remoting" port= "4447" /> <socket-binding name= "legacy-messaging" interface = "messaging- interface " port= "5445" /> </socket-binding-group> 2. Use JMS client tool such as JMSToolBox to connect to wildfly messaging system with Apache Active MQ Artemis v2.x and port 5445 3. Subscribe the topic testTopic 4. Disconnect to wildfly messaging system 5. Wait for 30 seconds 6. Reconnect to wildfly messaging system again 7. The topic testTopic disappear.
    • Hide

      No workaround

      Show
      No workaround

    Attachments

      Issue Links

        Activity

          People

            ehugonne1@redhat.com Emmanuel Hugonnet
            terryyrliang terry liang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: