9 Replies Latest reply on Mar 26, 2014 5:34 AM by Andy Taylor

    Help Please! How to run the AMQP example of HornetQ?

    feng wang Newbie

      version:hornetq-2.4.0.Final.

       

      I modified the file config\stand-alone\non-clustered\hornetq-configuration.xml like this :

         <acceptors>

            <acceptor name="proton">

               <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>

               <param key="protocol" value="AMQP"/>

               <param key="host" value="0.0.0.0"/>

               <param key="port" value="5672"/>

           </acceptor>

       

      Then run HornetQ server:

      20:45:46,517 INFO  [org.hornetq.core.server] HQ221020: Started Netty Acceptor version 4.0.13.Final 0.0.0.0:5672

       

      But run examples\jms\proton-j FAILURE. How to solve this problem? thanks!

       

      org.apache.qpid.amqp_1_0.client.Sender$SenderCreationException: Peer did not cre

      ate remote endpoint for link, target: testQueue

              at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:171)

              at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:104)

              at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:97)

              at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:83)

              at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:69)

              at org.apache.qpid.amqp_1_0.client.Sender.<init>(Sender.java:63)

              at org.apache.qpid.amqp_1_0.client.Session.createSender(Session.java:74)

       

       

              at org.apache.qpid.amqp_1_0.client.Session.createSender(Session.java:66)

       

       

              at org.hornetq.jms.example.ProtonJExample.runExample(ProtonJExample.java

      :49)

              at org.hornetq.common.example.HornetQExample.run(HornetQExample.java:70)

       

       

              at org.hornetq.jms.example.ProtonJExample.main(ProtonJExample.java:28)

       

       

      #####################

      ###    FAILURE!   ###

      #####################

      Exception in thread "main" java.lang.RuntimeException: failure in running exampl

      e

              at org.hornetq.common.example.HornetQExample.reportResultAndExit(HornetQ

      Example.java:215)

              at org.hornetq.common.example.HornetQExample.run(HornetQExample.java:81)

       

       

              at org.hornetq.jms.example.ProtonJExample.main(ProtonJExample.java:28)