activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmitt...@apache.org
Subject svn commit: r508796 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp
Date Sat, 17 Feb 2007 19:17:54 GMT
Author: nmittler
Date: Sat Feb 17 11:17:53 2007
New Revision: 508796

URL: http://svn.apache.org/viewvc?view=rev&rev=508796
Log:
[AMQCPP-30] adding support for creating messages in openwire

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp?view=diff&rev=508796&r1=508795&r2=508796
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp
Sat Feb 17 11:17:53 2007
@@ -49,6 +49,10 @@
 #include <activemq/connector/openwire/commands/ActiveMQQueue.h>
 #include <activemq/connector/openwire/commands/ExceptionResponse.h>
 #include <activemq/connector/openwire/commands/BrokerError.h>
+#include <activemq/connector/openwire/commands/ActiveMQMessage.h>
+#include <activemq/connector/openwire/commands/ActiveMQBytesMessage.h>
+#include <activemq/connector/openwire/commands/ActiveMQTextMessage.h>
+#include <activemq/connector/openwire/commands/ActiveMQMapMessage.h>
 
 using namespace std;
 using namespace activemq;
@@ -907,17 +911,13 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 cms::Message* OpenWireConnector::createMessage(
-    connector::SessionInfo* session,
-    TransactionInfo* transaction )
+    connector::SessionInfo* session AMQCPP_UNUSED,
+    TransactionInfo* transaction AMQCPP_UNUSED )
         throw ( ConnectorException )
 {
     try
     {
-        enforceConnected();
-
-        // TODO
-
-        return NULL;
+        return new commands::ActiveMQMessage();
     }
     AMQ_CATCH_RETHROW( ConnectorException )
     AMQ_CATCHALL_THROW( OpenWireConnectorException )
@@ -925,17 +925,13 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 cms::BytesMessage* OpenWireConnector::createBytesMessage(
-    connector::SessionInfo* session,
-    TransactionInfo* transaction )
+    connector::SessionInfo* session AMQCPP_UNUSED,
+    TransactionInfo* transaction AMQCPP_UNUSED )
         throw ( ConnectorException )
 {
     try
     {
-        enforceConnected();
-
-        // TODO
-
-        return NULL;
+        return new commands::ActiveMQBytesMessage();
     }
     AMQ_CATCH_RETHROW( ConnectorException )
     AMQ_CATCHALL_THROW( OpenWireConnectorException )
@@ -943,17 +939,13 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 cms::TextMessage* OpenWireConnector::createTextMessage(
-    connector::SessionInfo* session,
-    TransactionInfo* transaction )
+    connector::SessionInfo* session AMQCPP_UNUSED,
+    TransactionInfo* transaction AMQCPP_UNUSED )
         throw ( ConnectorException )
 {
     try
     {
-        enforceConnected();
-
-        // TODO
-
-        return NULL;
+        return new commands::ActiveMQTextMessage();
     }
     AMQ_CATCH_RETHROW( ConnectorException )
     AMQ_CATCHALL_THROW( OpenWireConnectorException )
@@ -961,17 +953,13 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 cms::MapMessage* OpenWireConnector::createMapMessage(
-    connector::SessionInfo* session,
-    TransactionInfo* transaction )
+    connector::SessionInfo* session AMQCPP_UNUSED,
+    TransactionInfo* transaction AMQCPP_UNUSED )
         throw ( ConnectorException )
 {
     try
     {
-        enforceConnected();
-
-        // TODO
-
-        return NULL;
+        return new commands::ActiveMQMapMessage();
     }
     AMQ_CATCH_RETHROW( ConnectorException )
     AMQ_CATCHALL_THROW( OpenWireConnectorException )



Mime
View raw message