activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1737430 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs
Date Fri, 01 Apr 2016 20:14:58 GMT
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)
             {



Mime
View raw message