0 Replies Latest reply on Nov 30, 2016 8:21 AM by Georg Firmberger

    How to connect your Spring Boot Client to Wildfly 10 ActiveMQ

    Georg Firmberger Newbie

      I am trying to connect to WildFly 10 ActiveMQ with my Spring Boot Application using a Http-Connector.

      In my application.properties I've set:

      spring.activemq.broker-url=http-remoting://sb-s-stage

       

       

      But the following exception is thrown when I'm starting the Application:

       

      Could not refresh JMS Connection for destination 'telematicQueue' - retrying using FixedBackOff{interval=5000, currentAttempts=0, maxAttempts=unlimited}. Cause: Could not create Transport. Reason: java.io.IOException: Transport scheme NOT recognized: [Htp-Remoting]

       

      The standalone-full.xml of the Wildfly 10.1.0.Final:

       

      <subsystem xmlns="urn:jboss:domain:messaging-activemq:1.0">
        
      <server name="default">
             
      <security-setting name="#">
                  
      <role name="guest" send="true" consume="true" create-non-durable-queue="true" delete-non-durable-queue="true"/>
             
      </security-setting>
             
      <address-setting name="#" dead-letter-address="jms.queue.DLQ" expiry-address="jms.queue.ExpiryQueue" max-size-bytes="10485760" 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>
             
      <in-vm-connector name="in-vm" server-id="0"/>
             
      <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>
             
      <in-vm-acceptor name="in-vm" server-id="0"/>
             
      <jms-queue name="as400Buffer" entries="java:/queue/as400Buffer java:/jboss/exported/jms/queue/as400Buffer"/>
             
      <jms-queue name="ediInQueue" entries="java:/queue/ediInQueue java:/jboss/exported/jms/queue/ediInQueue"/>
             
      <jms-queue name="telematicQueue" entries="java:/queue/telematicQueue java:/jboss/exported/jms/queue/telematicQueue"/>
             
      <jms-queue name="telematicOUTQueue" entries="java:/queue/telematicOUTQueue java:/jboss/exported/jms/queue/telematicOUTQueue"/>
             
      <jms-queue name="dispoListQueue" entries="java:/queue/dispoListQueue java:/jboss/exported/jms/queue/dispoListQueue"/>
             
      <jms-queue name="telematicDatasyncQueue" entries="java:/queue/telematicDatasyncQueue java:/jboss/exported/jms/queue/telematicDatasyncQueue"/>
             
      <jms-queue name="printerQueue" entries="java:/queue/printerQueue java:/jboss/exported/jms/queue/printerQueue"/>
             
      <jms-topic name="events" entries="java:/topic/events java:/jboss/exported/jms/topic/events"/>
             
      <jms-topic name="eventsTest" entries="java:/topic/eventsTest java:/jboss/exported/jms/topic/eventsTest"/>
             
      <connection-factory name="InVmConnectionFactory" entries="java:/ConnectionFactory" connectors="in-vm"/>
             
      <connection-factory name="RemoteConnectionFactory" entries="java:jboss/exported/jms/RemoteConnectionFactory" connectors="http-connector"/>
             
      <pooled-connection-factory name="activemq-ra" entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory" connectors="in-vm" transaction="xa"/>
        
      </server>
      </subsystem>