activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Watson (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQCPP-317) activemq-cpp 3.2.2 will not work with activemq 5.4.0 broker using Stomp
Date Mon, 13 Sep 2010 23:48:40 GMT
activemq-cpp 3.2.2  will not work with activemq 5.4.0 broker using Stomp
------------------------------------------------------------------------

                 Key: AMQCPP-317
                 URL: https://issues.apache.org/activemq/browse/AMQCPP-317
             Project: ActiveMQ C++ Client
          Issue Type: Bug
    Affects Versions: 3.2.2
         Environment: Windows 7, all compiled with Visual Studio 2008
            Reporter: Scott Watson
            Assignee: Timothy Bish


I deployed activemq server on Windows 7 with JDK 1.6.0_20 and executed it using the command:

bin\activemq xbean:activemq-stomp.xml

The server started up with no problems and reported stomp+nio listening at port 61612 and
stomp listening at port 61613.

I also built the activemq-cpp solution using Visual C++ 2008 on Windows 7 and using the Debug
configuration with the
Multithreaded Debug runtime for all libraries and the executable.

I only changed line 387 in the file main.cpp, from:
"failover:(tcp://localhost:61616"
to
"tcp://127.0.0.1:61613?wireFormat=stomp"
(note: also tried it with port 61612 with same results)

Executed activemq-cpp-example project and the Producer connected properly and sent its messages.
 I could
see the messages enqueued in the http web console.  The Consumer, however, did connect (could
see 1
consumer listed under the "Queues" section of the http web console) but did not dequeue any
messages,
nor did it report receiving any in its command prompt window.

I put a breakpoint in the OnMessage method and saw that it was never being called.

I then changed the code to use OpenWire by changing the above line to:
"tcp://127.0.0.1:61616"

I then executed activemq using the command:

bin\activemq xbean:activemq-demo.xml

and then executed the activemq-cpp-example project.  It functioned perfectly with both consumer
and producer reporting success.




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message