SPRNET-1365 - Update to ActiveMQ NMS 1.4

SPRNET-1369 - NmsTemplate was not attempting to start the connection when calling RecieveAndConvert
This commit is contained in:
markpollack
2010-09-22 04:00:24 +00:00
parent 247092ebb3
commit 423ec64916
12 changed files with 147 additions and 5 deletions

View File

@@ -19,6 +19,7 @@
#endregion
using System;
using System.Threading;
using Apache.NMS;
using Apache.NMS.ActiveMQ;
using NUnit.Framework;
@@ -44,6 +45,7 @@ namespace Spring.Messaging.Nms.Core
}
[Test]
[ExpectedException(typeof(Apache.NMS.NMSConnectionException))]
public void ConnectionThrowException()
{
ConnectionFactory cf = new ConnectionFactory();
@@ -62,6 +64,7 @@ namespace Spring.Messaging.Nms.Core
//Use with destination set at runtime
nmsTemplate.ConvertAndSend("APP.TESTING", msgText);
AssertRecievedHelloWorldMessage(msgText, nmsTemplate.ReceiveAndConvert("APP.TESTING"));
//Now using default destination set via property

View File

@@ -50,6 +50,18 @@ namespace Spring.Messaging.Nms.Connections
closeCount++;
}
public ConsumerTransformerDelegate ConsumerTransformer
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
public ProducerTransformerDelegate ProducerTransformer
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
public TimeSpan RequestTimeout
{
get { throw new NotImplementedException(); }

View File

@@ -31,6 +31,18 @@ namespace Spring.Messaging.Nms.Connections
set { throw new NotImplementedException(); }
}
public ConsumerTransformerDelegate ConsumerTransformer
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
public ProducerTransformerDelegate ProducerTransformer
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
#endregion
}
}

View File

@@ -53,6 +53,12 @@ namespace Spring.Messaging.Nms.Connections
throw new NotImplementedException();
}
public ConsumerTransformerDelegate ConsumerTransformer
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
public void Dispose()
{
throw new NotImplementedException();

View File

@@ -95,6 +95,12 @@ namespace Spring.Messaging.Nms.Connections
throw new NotImplementedException();
}
public ProducerTransformerDelegate ProducerTransformer
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
public MsgDeliveryMode DeliveryMode
{
get { return msgDeliveryMode; }

View File

@@ -211,6 +211,18 @@ namespace Spring.Messaging.Nms.Connections
}
public ConsumerTransformerDelegate ConsumerTransformer
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
public ProducerTransformerDelegate ProducerTransformer
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
public TimeSpan RequestTimeout
{
get { throw new NotImplementedException(); }

View File

@@ -182,6 +182,12 @@ namespace Spring.Messaging.Nms.Core
throw new NotImplementedException();
}
public ConsumerTransformerDelegate ConsumerTransformer
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
public void Dispose()
{
throw new NotImplementedException();