activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1060116 - in /activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/cpp: Listener.cpp Publisher.cpp
Date Mon, 17 Jan 2011 22:29:03 GMT
Author: chirino
Date: Mon Jan 17 22:29:03 2011
New Revision: 1060116

URL: http://svn.apache.org/viewvc?rev=1060116&view=rev
Log:
Fix compile errors.

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=1060116&r1=1060115&r2=1060116&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
Mon Jan 17 22:29:03 2011
@@ -19,6 +19,7 @@
 #include <activemq/core/ActiveMQConnection.h>
 #include <activemq/library/ActiveMQCPP.h>
 #include <decaf/lang/Integer.h>
+#include <decaf/lang/System.h>
 #include <activemq/util/Config.h>
 #include <cms/Connection.h>
 #include <cms/Session.h>
@@ -73,7 +74,7 @@ int main(int argc AMQCPP_UNUSED, char* a
 
     {
         ActiveMQConnectionFactory factory;
-        factory.setBrokerURI(std::string("tcp://") + host + ":" + Integer::toString(port)
+ "?wireFormat=stomp");
+        factory.setBrokerURL(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=1060116&r1=1060115&r2=1060116&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
Mon Jan 17 22:29:03 2011
@@ -85,7 +85,7 @@ int main(int argc, char* argv[]) {
 
     {
         ActiveMQConnectionFactory factory;
-        factory.setBrokerURI(std::string("tcp://") + host + ":" + Integer::toString(port)
+ "?wireFormat=stomp");
+        factory.setBrokerURL(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