0 Replies Latest reply on Aug 12, 2015 3:23 AM by Michael Bornholdt Nielsen

    Can't connect to WildFly using AMQP

    Michael Bornholdt Nielsen Newbie

      I have created a project on GitHub to make my point of not being able to connect to WildFly (wildfly-9.0.0.Final running on Fedora 22 64bit) using AMQP ->  wildfly/wildfly-amqp

       

      I hope to get pointed in direction of working sample code

       

      ----------------------------------------------------------------------------------------------------------------

       

      I started out using the sample code from helloworld-jms with small modification and have it working

       

      https://raw.githubusercontent.com/jarryDk/wildfly/master/wildfly-amqp/src/main/java/dk/jarry/wildfly/amqp/HelloWorldJMSClient.java

       

      I now know - I can connect to WildFly and send and recive from the queue jms/queue/test

       

      <jms-queue name="testQueue">

           <entry name="queue/test"/>

           <entry name="java:jboss/exported/jms/queue/test"/>

      </jms-queue>

       

      I have created the user cisadmin og asign the user the role guest

       

      <security-settings>

           <security-setting match="#">

                <permission type="send" roles="guest"/>

                <permission type="consume" roles="guest"/>

                <permission type="createNonDurableQueue" roles="guest"/>

                <permission type="deleteNonDurableQueue" roles="guest"/>

           </security-setting>

      </security-settings>

       

      ----------------------------------------------------------------------------------------------------------------

       

      I used the proton-j sample fra HornetQ with small modification

       

      https://raw.githubusercontent.com/jarryDk/wildfly/master/wildfly-amqp/src/main/java/dk/jarry/wildfly/amqp/ProtonJExample.java

       

      This code just sop while trying to make connection.

       

      ----------------------------------------------------------------------------------------------------------------

       

      I tryed the qpid-proton from Qpid Proton - Apache Qpid™ with  modification


      https://raw.githubusercontent.com/jarryDk/wildfly/master/wildfly-amqp/src/main/java/dk/jarry/wildfly/amqp/QpidProtonSender.java

      https://raw.githubusercontent.com/jarryDk/wildfly/master/wildfly-amqp/src/main/java/dk/jarry/wildfly/amqp/QpidProtonReci…

       

      The qpid-proton code is not working ...

       

      Via WireShark I have collected this ..

       

      Request from QpidProtonSender.java

      AMQP.............SA.....ANONYMOUS

       

      Response fra WildFly

      HTTP/1.1 400 Bad Request

      Content-Length: 0

      Connection: close