You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/06/01 20:08:05 UTC

svn commit: r950179 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core: ActiveMQConnectionMetaData.cpp ActiveMQConnectionMetaData.cpp.in

Author: tabish
Date: Tue Jun  1 18:08:05 2010
New Revision: 950179

URL: http://svn.apache.org/viewvc?rev=950179&view=rev
Log:
Create an AutoConf input file that updates the version info in ActiveMQConnectionMetaData.cpp automatically when the versions in the configure script are updated.

Added:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp.in   (with props)
Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp?rev=950179&r1=950178&r2=950179&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp Tue Jun  1 18:08:05 2010
@@ -31,7 +31,7 @@ ActiveMQConnectionMetaData::~ActiveMQCon
 
 ////////////////////////////////////////////////////////////////////////////////
 std::string ActiveMQConnectionMetaData::getCMSVersion() const throw( cms::CMSException ) {
-    return "2.1";
+    return "2.2";
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -46,12 +46,12 @@ int ActiveMQConnectionMetaData::getCMSMi
 
 ////////////////////////////////////////////////////////////////////////////////
 std::string ActiveMQConnectionMetaData::getCMSProviderName() const throw( cms::CMSException ) {
-    return "ActiveMQ-CPP";
+    return "activemq-cpp";
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 std::string ActiveMQConnectionMetaData::getProviderVersion() const throw( cms::CMSException ) {
-    return "3.2";
+    return "3.2.0";
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp.in
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp.in?rev=950179&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp.in (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp.in Tue Jun  1 18:08:05 2010
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "ActiveMQConnectionMetaData.h"
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::core;
+
+////////////////////////////////////////////////////////////////////////////////
+ActiveMQConnectionMetaData::ActiveMQConnectionMetaData() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ActiveMQConnectionMetaData::~ActiveMQConnectionMetaData() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string ActiveMQConnectionMetaData::getCMSVersion() const throw( cms::CMSException ) {
+    return "@CMSAPI_VERSION@";
+}
+
+////////////////////////////////////////////////////////////////////////////////
+int ActiveMQConnectionMetaData::getCMSMajorVersion() const throw( cms::CMSException ) {
+    return @CMSAPI_MAJOR_VERSION@;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+int ActiveMQConnectionMetaData::getCMSMinorVersion() const throw( cms::CMSException ) {
+    return @CMSAPI_MINOR_VERSION@;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string ActiveMQConnectionMetaData::getCMSProviderName() const throw( cms::CMSException ) {
+    return "@ACTIVEMQ_LIBRARY_NAME@";
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string ActiveMQConnectionMetaData::getProviderVersion() const throw( cms::CMSException ) {
+    return "@ACTIVEMQ_VERSION@";
+}
+
+////////////////////////////////////////////////////////////////////////////////
+int ActiveMQConnectionMetaData::getProviderMajorVersion() const throw( cms::CMSException ) {
+    return @ACTIVEMQ_MAJOR_VERSION@;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+int ActiveMQConnectionMetaData::getProviderMinorVersion() const throw( cms::CMSException ) {
+    return @ACTIVEMQ_MINOR_VERSION@;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::vector<std::string> ActiveMQConnectionMetaData::getCMSXPropertyNames() const
+    throw( cms::CMSException ) {
+
+    std::vector<std::string> jmxProperties;
+
+    jmxProperties.push_back( "JMSXGroupID" );
+    jmxProperties.push_back( "JMSXGroupSeq" );
+    jmxProperties.push_back( "JMSXDeliveryCount" );
+    jmxProperties.push_back( "JMSXProducerTXID" );
+
+    return jmxProperties;
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp.in
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionMetaData.cpp.in
------------------------------------------------------------------------------
    svn:executable = *