You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jg...@apache.org on 2008/10/27 21:56:15 UTC

svn commit: r708312 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/OpenWireFormat.cs

Author: jgomes
Date: Mon Oct 27 13:56:14 2008
New Revision: 708312

URL: http://svn.apache.org/viewvc?rev=708312&view=rev
Log:
Implement default wire format parameters.
Fixes [AMQNET-117]. (See https://issues.apache.org/activemq/browse/AMQNET-117)

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/OpenWireFormat.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/OpenWireFormat.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/OpenWireFormat.cs?rev=708312&r1=708311&r2=708312&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/OpenWireFormat.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/OpenWireFormat.cs Mon Oct 27 13:56:14 2008
@@ -50,14 +50,15 @@
 
 		public OpenWireFormat()
 		{
-			PreferedWireFormatInfo.CacheEnabled = false;
-			PreferedWireFormatInfo.StackTraceEnabled = false;
-			PreferedWireFormatInfo.TcpNoDelayEnabled = true;
+            // See the following link for defaults: http://activemq.apache.org/configuring-wire-formats.html
+			PreferedWireFormatInfo.CacheEnabled = true;
+			PreferedWireFormatInfo.StackTraceEnabled = true;
+			PreferedWireFormatInfo.TcpNoDelayEnabled = true;    // Deviate from defaults for platform speed increase.
 			PreferedWireFormatInfo.SizePrefixDisabled = false;
-			PreferedWireFormatInfo.TightEncodingEnabled = false;
-			PreferedWireFormatInfo.MaxInactivityDuration = 0;
+			PreferedWireFormatInfo.TightEncodingEnabled = true;
+			PreferedWireFormatInfo.MaxInactivityDuration = 30000;
 			PreferedWireFormatInfo.MaxInactivityDurationInitialDelay = 0;
-			PreferedWireFormatInfo.CacheSize = 0;
+			PreferedWireFormatInfo.CacheSize = 1024;
 			PreferedWireFormatInfo.Version = 2;
 
 			dataMarshallers = new BaseDataStreamMarshaller[256];