summaryrefslogtreecommitdiff
path: root/qpid/wcf/test/Apache/Qpid/Test
diff options
context:
space:
mode:
authorClifford Allan Jansen <cliffjansen@apache.org>2010-11-19 20:39:14 +0000
committerClifford Allan Jansen <cliffjansen@apache.org>2010-11-19 20:39:14 +0000
commit6ecbf26225db03b563944ba7924113b80a2bc5b5 (patch)
tree55b440c0737040c2a61896235428f7bfbf704d92 /qpid/wcf/test/Apache/Qpid/Test
parentfebbb894948c3bec58f159ea16a26b1744df7683 (diff)
downloadqpid-python-6ecbf26225db03b563944ba7924113b80a2bc5b5.tar.gz
QPID-2954 fix naming of dummy queue for WarmUpTransactionSubsystem
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1037017 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/wcf/test/Apache/Qpid/Test')
-rw-r--r--qpid/wcf/test/Apache/Qpid/Test/Channel/WcfPerftest/WcfPerftest.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/qpid/wcf/test/Apache/Qpid/Test/Channel/WcfPerftest/WcfPerftest.cs b/qpid/wcf/test/Apache/Qpid/Test/Channel/WcfPerftest/WcfPerftest.cs
index 413c185039..c97d3da27c 100644
--- a/qpid/wcf/test/Apache/Qpid/Test/Channel/WcfPerftest/WcfPerftest.cs
+++ b/qpid/wcf/test/Apache/Qpid/Test/Channel/WcfPerftest/WcfPerftest.cs
@@ -391,8 +391,13 @@ namespace Apache.Qpid.Test.Channel.WcfPerftest
Console.WriteLine("Initializing transactions");
IRawBodyUtility bodyUtil = new RawEncoderUtility();
- // send a transacted message to nowhere to force the initial registration with MSDTC
- IOutputChannel channel = QueueChannelFactory.CreateWriterChannel("", Guid.NewGuid().ToString());
+ // Send a transacted message to nowhere to force the initial registration with MSDTC.
+ // MSDTC insists on verifying it can contact the resource in the manner expected for
+ // recovery. This requires setting up and finishing a separate connection to the
+ // broker by a thread owned by the DTC. Excluding this time allows the existing
+ // reporting mechanisms to better reflect the cost per transaction without requiring
+ // long test runs.
+ IOutputChannel channel = QueueChannelFactory.CreateWriterChannel("amq.direct", Guid.NewGuid().ToString());
Message msg = bodyUtil.CreateMessage("sacrificial transacted message from WcfPerftest");
using (TransactionScope ts = new TransactionScope())
{