activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r592453 - in /activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk: Apache.NMS.NMSFactory.msmq src/main/csharp/ConnectionFactory.cs src/test/csharp/NMSConnectionFactoryTest.cs vs2005-msmq-test.csproj vs2005-msmq.csproj
Date Tue, 06 Nov 2007 15:22:02 GMT
Author: chirino
Date: Tue Nov  6 07:21:59 2007
New Revision: 592453

URL: http://svn.apache.org/viewvc?rev=592453&view=rev
Log:
Updated this NMS implementation so that the discovery mechanisim in NMSConnectionFactory
can locate the implemenation. AMQNET-75


Added:
    activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/Apache.NMS.NMSFactory.msmq
    activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
Modified:
    activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/ConnectionFactory.cs
    activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/vs2005-msmq-test.csproj
    activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/vs2005-msmq.csproj

Added: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/Apache.NMS.NMSFactory.msmq
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/Apache.NMS.NMSFactory.msmq?rev=592453&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/Apache.NMS.NMSFactory.msmq (added)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/Apache.NMS.NMSFactory.msmq Tue Nov  6 07:21:59
2007
@@ -0,0 +1 @@
+Apache.NMS.MSMQ.ConnectionFactory
\ No newline at end of file

Modified: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/ConnectionFactory.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/ConnectionFactory.cs?rev=592453&r1=592452&r2=592453&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/ConnectionFactory.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/ConnectionFactory.cs Tue
Nov  6 07:21:59 2007
@@ -28,7 +28,11 @@
 		{
 		}
 
-		public ConnectionFactory(Uri brokerUri, string clientID)
+        public ConnectionFactory(String brokerUri)
+        {
+        }
+
+        public ConnectionFactory(String brokerUri, string clientID)
 		{
 		}
 

Added: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/test/csharp/NMSConnectionFactoryTest.cs?rev=592453&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
(added)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
Tue Nov  6 07:21:59 2007
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ */
+using System;
+using Apache.NMS;
+using NUnit.Framework;
+using System.Reflection;
+using System.IO;
+
+namespace Apache.NMS.ActiveMQ
+{
+    [TestFixture]
+    public class NMSConnectionFactoryTest 
+    {
+        [Test]
+        public void TestMsmqURI()
+        {
+            NMSConnectionFactory factory = new NMSConnectionFactory("msmq://localhost");
+            Assert.IsNotNull(factory);
+            Assert.IsNotNull(factory.ConnectionFactory);
+            Assert.IsTrue(factory.ConnectionFactory is Apache.NMS.MSMQ.ConnectionFactory);
+        }
+
+    }
+
+
+}
+

Modified: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/vs2005-msmq-test.csproj
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/vs2005-msmq-test.csproj?rev=592453&r1=592452&r2=592453&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/vs2005-msmq-test.csproj (original)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/vs2005-msmq-test.csproj Tue Nov  6 07:21:59
2007
@@ -53,6 +53,7 @@
   </ItemGroup>
   <ItemGroup>
     <Compile Include="src\test\csharp\CommonAssemblyInfo.cs" />
+    <Compile Include="src\test\csharp\NMSConnectionFactoryTest.cs" />
     <Compile Include="src\test\csharp\ProducerTest.cs">
       <SubType>Code</SubType>
     </Compile>

Modified: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/vs2005-msmq.csproj
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/vs2005-msmq.csproj?rev=592453&r1=592452&r2=592453&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/vs2005-msmq.csproj (original)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/vs2005-msmq.csproj Tue Nov  6 07:21:59
2007
@@ -57,6 +57,7 @@
   </ItemGroup>
   <ItemGroup>
     <None Include="activemq-dotnet.snk" />
+    <EmbeddedResource Include="Apache.NMS.NMSFactory.msmq" />
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="vendor\Apache.NMS\vs2005-nms.csproj">



Mime
View raw message