Author: jstrachan
Date: Fri Aug 25 09:42:44 2006
New Revision: 436850
URL: http://svn.apache.org/viewvc?rev=436850&view=rev
Log:
added a test case to check we can configure the keepAlive and tcpNoDelay
properties on TCP. For background see:
http://www.nabble.com/Bad-AMQ-Linux-performance-tf2159490.html#a5986085
Added:
incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java
(with props)
Modified:
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java
Modified:
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java
URL:
http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java?rev=436850&r1=436849&r2=436850&view=diff
==============================================================================
---
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java
(original)
+++
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java
Fri Aug 25 09:42:44 2006
@@ -207,6 +207,8 @@
return true;
if( clazz == URI.class )
return true;
+ if( clazz == Boolean.class )
+ return true;
return false;
}
Added:
incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java
URL:
http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java?rev=436850&view=auto
==============================================================================
---
incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java
(added)
+++
incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java
Fri Aug 25 09:42:44 2006
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.transport.tcp;
+
+import org.apache.activemq.ActiveMQConnectionFactory;
+import org.apache.activemq.EmbeddedBrokerTestSupport;
+
+import javax.jms.Connection;
+
+/**
+ *
+ * @version $Revision$
+ */
+public class TransportUriTest extends EmbeddedBrokerTestSupport {
+
+ private String postfix = "?tcpNoDelay=true&keepAlive=true";
+ private Connection connection;
+
+ public void testUriOptionsWork() throws Exception {
+ String uri = bindAddress + postfix;
+ System.out.println("Connecting via: " + uri);
+
+ connection = new ActiveMQConnectionFactory(uri).createConnection();
+ connection.start();
+ }
+
+ protected void setUp() throws Exception {
+ bindAddress = "tcp://localhost:6161";
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception {
+ if (connection != null) {
+ connection.close();
+ }
+ super.tearDown();
+ }
+
+}
Propchange:
incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL