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 2016/04/01 22:14:58 UTC
svn commit: r1737430 -
/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs
Author: tabish
Date: Fri Apr 1 20:14:57 2016
New Revision: 1737430
URL: http://svn.apache.org/viewvc?rev=1737430&view=rev
Log:
Create MessageProducer with a sync call in order to catch creation errors.
Fixes [AMQNET-AMQNET-523]. (See https://issues.apache.org/jira/browse/AMQNET-AMQNET-523)
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs
Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs?rev=1737430&r1=1737429&r2=1737430&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs Fri Apr 1 20:14:57 2016
@@ -460,7 +460,7 @@ namespace Apache.NMS.ActiveMQ
producer.ProducerTransformer = this.ProducerTransformer;
this.AddProducer(producer);
- this.Connection.Oneway(producer.ProducerInfo);
+ this.Connection.SyncRequest(producer.ProducerInfo);
}
catch(Exception)
{