3 Replies Latest reply on Dec 16, 2009 4:13 PM by Sergey Makhnist

    No way to use activeMQ via http. TCP works fine, but not http. Please help.

    Sergey Makhnist Newbie

      I developed simplest application where

      client sends array of Integers as ObjectMessage to Server.

      Server application calculates sum of this values and return the result as ObjectMessage back to Client.

      Other words, it is simplest example ever.

       

      When I use tcp protocol (tcp://localhost:61616) everything works fine.

       

      However after setting http

       

      (just added

      finished ){

                      //do nothing

                  }

                  System.out.println("Finished");

              } catch (JMSException e) {

                  e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.

              }

          }

      }

       

      3) Constants.java

       

       

       

      public interface Constants {

          String QUEUE_NAME = "QUEUE";

       

          // to check tcp

          String BROKER_URL = "tcp://localhost:61616";

       

          // to check http

          //String BROKER_URL = "http://localhost:8080";

      }

       

       

      Attachment is a maven project for a quick build.

       

       

      I'll be really thankful for your help in this issue.

      Thank you, guys.