activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1214742 - in /activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp: Listener.cpp Publisher.cpp
Date Thu, 15 Dec 2011 13:20:27 GMT
Author: chirino
Date: Thu Dec 15 13:20:26 2011
New Revision: 1214742

URL: http://svn.apache.org/viewvc?rev=1214742&view=rev
Log:
Fixes APLO-116 : C++ example does not compile against activemq-cpp-3.4.1

Modified:
    activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp/Listener.cpp
    activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp/Publisher.cpp

Modified: activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp/Listener.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp/Listener.cpp?rev=1214742&r1=1214741&r2=1214742&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp/Listener.cpp
(original)
+++ activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp/Listener.cpp
Thu Dec 15 13:20:26 2011
@@ -74,7 +74,7 @@ int main(int argc AMQCPP_UNUSED, char* a
 
     {
         ActiveMQConnectionFactory factory;
-        factory.setBrokerURL(std::string("tcp://") + host + ":" + Integer::toString(port)
+ "?wireFormat=stomp");
+        factory.setBrokerURI(std::string("tcp://") + host + ":" + Integer::toString(port)
+ "?wireFormat=stomp");
 
         std::auto_ptr<Connection> connection(factory.createConnection(user, password));
 

Modified: activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp/Publisher.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp/Publisher.cpp?rev=1214742&r1=1214741&r2=1214742&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp/Publisher.cpp
(original)
+++ activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp/Publisher.cpp
Thu Dec 15 13:20:26 2011
@@ -85,7 +85,7 @@ int main(int argc, char* argv[]) {
 
     {
         ActiveMQConnectionFactory factory;
-        factory.setBrokerURL(std::string("tcp://") + host + ":" + Integer::toString(port)
+ "?wireFormat=stomp");
+        factory.setBrokerURI(std::string("tcp://") + host + ":" + Integer::toString(port)
+ "?wireFormat=stomp");
 
         std::auto_ptr<TextMessage> message;
         std::auto_ptr<Connection> connection(factory.createConnection(user, password));



Mime
View raw message