attempt to prevent receive blocking in the event of messages present on slower machines or solaris

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@799336 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-07-30 15:49:08 +00:00
parent fc63a92339
commit dbefbecf1a
2 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,6 @@
package org.apache.activemq.network;
import org.apache.activemq.broker.BrokerService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class DuplexNetworkTest extends SimpleNetworkTest {

View File

@ -170,6 +170,8 @@ public class SimpleNetworkTest extends TestCase {
localBroker.start();
URI localURI = localBroker.getVmConnectorURI();
ActiveMQConnectionFactory fac = new ActiveMQConnectionFactory(localURI);
fac.setAlwaysSyncSend(true);
fac.setDispatchAsync(false);
localConnection = fac.createConnection();
localConnection.setClientID("local");
localConnection.start();