activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r757399 - in /activemq/activemq-cpp/trunk/src: examples/main.cpp main/activemq/transport/CompositeTransport.h main/activemq/util/Task.h
Date Mon, 23 Mar 2009 14:17:03 GMT
Author: tabish
Date: Mon Mar 23 14:16:53 2009
New Revision: 757399

URL: http://svn.apache.org/viewvc?rev=757399&view=rev
Log:
Add missing DLL exports to the class definitions. 

Modified:
    activemq/activemq-cpp/trunk/src/examples/main.cpp
    activemq/activemq-cpp/trunk/src/main/activemq/transport/CompositeTransport.h
    activemq/activemq-cpp/trunk/src/main/activemq/util/Task.h

Modified: activemq/activemq-cpp/trunk/src/examples/main.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/examples/main.cpp?rev=757399&r1=757398&r2=757399&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/examples/main.cpp (original)
+++ activemq/activemq-cpp/trunk/src/examples/main.cpp Mon Mar 23 14:16:53 2009
@@ -118,6 +118,7 @@
                 // Tell the producer to send the message
                 printf( "Sent message #%d from thread %s\n", ix+1, threadIdStr.c_str() );
                 producer->send( message );
+				Thread::sleep( 20 );
 
                 delete message;
             }
@@ -356,14 +357,14 @@
     //    tcp://127.0.0.1:61613?wireFormat=stomp     use stomp instead
     //
     std::string brokerURI =
-        "tcp://127.0.0.1:61616"
+		"failover://(tcp://127.0.0.1:61616"
         "?wireFormat=openwire"
 //        "&connection.alwaysSyncSend=true"
 //        "&connection.useAsyncSend=true"
 //        "&transport.commandTracingEnabled=true"
 //        "&transport.tcpTracingEnabled=true"
 //        "&wireFormat.tightEncodingEnabled=true"
-        ;
+		")";
 
     //============================================================
     // set to true to use topics instead of queues
@@ -372,7 +373,7 @@
     //============================================================
     bool useTopics = true;
     bool sessionTransacted = false;
-    int numMessages = 2000;
+    int numMessages = 20000;
 
     long long startTime = Date::getCurrentTimeMilliseconds();
 

Modified: activemq/activemq-cpp/trunk/src/main/activemq/transport/CompositeTransport.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/transport/CompositeTransport.h?rev=757399&r1=757398&r2=757399&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/transport/CompositeTransport.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/transport/CompositeTransport.h Mon Mar 23
14:16:53 2009
@@ -18,6 +18,7 @@
 #ifndef _ACTIVEMQ_TRANSPORT_COMPOSITETRANSPORT_H_
 #define _ACTIVEMQ_TRANSPORT_COMPOSITETRANSPORT_H_
 
+#include <activemq/util/Config.h>
 #include <activemq/transport/Transport.h>
 #include <decaf/net/URI.h>
 #include <decaf/util/List.h>
@@ -36,7 +37,7 @@
      *
      * @since 3.0
      */
-    class CompositeTransport: public activemq::transport::Transport {
+    class AMQCPP_API CompositeTransport: public activemq::transport::Transport {
     public:
 
         virtual ~CompositeTransport() {}

Modified: activemq/activemq-cpp/trunk/src/main/activemq/util/Task.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/util/Task.h?rev=757399&r1=757398&r2=757399&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/util/Task.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/util/Task.h Mon Mar 23 14:16:53 2009
@@ -18,6 +18,8 @@
 #ifndef _ACTIVEMQ_UTIL_TASK_H_
 #define _ACTIVEMQ_UTIL_TASK_H_
 
+#include <activemq/util/Config.h>
+
 namespace activemq {
 namespace util {
 
@@ -26,7 +28,7 @@
      *
      * @since 3.0
      */
-    class Task {
+    class AMQCPP_API Task {
     public:
 
         virtual ~Task() {}



Mime
View raw message