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:
@@ -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
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user