mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1366202 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
27a74d381b
commit
fefb228698
|
@ -347,6 +347,7 @@ public class ActiveMQConnectionFactory extends JNDIBaseStorable implements Conne
|
||||||
connection.setMaxThreadPoolSize(getMaxThreadPoolSize());
|
connection.setMaxThreadPoolSize(getMaxThreadPoolSize());
|
||||||
connection.setSessionTaskRunner(getSessionTaskRunner());
|
connection.setSessionTaskRunner(getSessionTaskRunner());
|
||||||
connection.setRejectedTaskHandler(getRejectedTaskHandler());
|
connection.setRejectedTaskHandler(getRejectedTaskHandler());
|
||||||
|
connection.setNestedMapAndListEnabled(isNestedMapAndListEnabled());
|
||||||
if (transportListener != null) {
|
if (transportListener != null) {
|
||||||
connection.addTransportListener(transportListener);
|
connection.addTransportListener(transportListener);
|
||||||
}
|
}
|
||||||
|
@ -765,6 +766,7 @@ public class ActiveMQConnectionFactory extends JNDIBaseStorable implements Conne
|
||||||
props.setProperty("transactedIndividualAck", Boolean.toString(isTransactedIndividualAck()));
|
props.setProperty("transactedIndividualAck", Boolean.toString(isTransactedIndividualAck()));
|
||||||
props.setProperty("nonBlockingRedelivery", Boolean.toString(isNonBlockingRedelivery()));
|
props.setProperty("nonBlockingRedelivery", Boolean.toString(isNonBlockingRedelivery()));
|
||||||
props.setProperty("maxThreadPoolSize", Integer.toString(getMaxThreadPoolSize()));
|
props.setProperty("maxThreadPoolSize", Integer.toString(getMaxThreadPoolSize()));
|
||||||
|
props.setProperty("nestedMapAndListEnabled", Boolean.toString(isNestedMapAndListEnabled()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseCompression() {
|
public boolean isUseCompression() {
|
||||||
|
|
|
@ -16,6 +16,15 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.joramtests;
|
package org.apache.activemq.joramtests;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Hashtable;
|
||||||
|
|
||||||
|
import javax.jms.ConnectionFactory;
|
||||||
|
import javax.naming.Context;
|
||||||
|
import javax.naming.InitialContext;
|
||||||
|
import javax.naming.NamingException;
|
||||||
|
|
||||||
import org.apache.activemq.ActiveMQConnectionFactory;
|
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||||
import org.apache.activemq.broker.BrokerFactory;
|
import org.apache.activemq.broker.BrokerFactory;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
|
@ -23,14 +32,6 @@ import org.apache.activemq.command.ActiveMQQueue;
|
||||||
import org.apache.activemq.command.ActiveMQTopic;
|
import org.apache.activemq.command.ActiveMQTopic;
|
||||||
import org.objectweb.jtests.jms.admin.Admin;
|
import org.objectweb.jtests.jms.admin.Admin;
|
||||||
|
|
||||||
import javax.jms.ConnectionFactory;
|
|
||||||
import javax.naming.Context;
|
|
||||||
import javax.naming.InitialContext;
|
|
||||||
import javax.naming.NamingException;
|
|
||||||
import java.io.File;
|
|
||||||
import java.net.URI;
|
|
||||||
import java.util.Hashtable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author <a href="http://hiramchirino.com">Hiram Chirino</a>
|
* @author <a href="http://hiramchirino.com">Hiram Chirino</a>
|
||||||
|
@ -118,6 +119,7 @@ public class ActiveMQAdmin implements Admin {
|
||||||
public void createConnectionFactory(String name) {
|
public void createConnectionFactory(String name) {
|
||||||
try {
|
try {
|
||||||
final ConnectionFactory factory = new ActiveMQConnectionFactory("vm://localhost");
|
final ConnectionFactory factory = new ActiveMQConnectionFactory("vm://localhost");
|
||||||
|
((ActiveMQConnectionFactory) factory).setNestedMapAndListEnabled(false);
|
||||||
context.bind(name, factory);
|
context.bind(name, factory);
|
||||||
} catch (NamingException e) {
|
} catch (NamingException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|
|
@ -28,6 +28,7 @@ import org.objectweb.jtests.jms.conform.message.MessageTypeTest;
|
||||||
import org.objectweb.jtests.jms.conform.message.headers.MessageHeaderTest;
|
import org.objectweb.jtests.jms.conform.message.headers.MessageHeaderTest;
|
||||||
import org.objectweb.jtests.jms.conform.message.properties.JMSXPropertyTest;
|
import org.objectweb.jtests.jms.conform.message.properties.JMSXPropertyTest;
|
||||||
import org.objectweb.jtests.jms.conform.message.properties.MessagePropertyConversionTest;
|
import org.objectweb.jtests.jms.conform.message.properties.MessagePropertyConversionTest;
|
||||||
|
import org.objectweb.jtests.jms.conform.message.properties.MessagePropertyTest;
|
||||||
import org.objectweb.jtests.jms.conform.queue.QueueBrowserTest;
|
import org.objectweb.jtests.jms.conform.queue.QueueBrowserTest;
|
||||||
import org.objectweb.jtests.jms.conform.queue.TemporaryQueueTest;
|
import org.objectweb.jtests.jms.conform.queue.TemporaryQueueTest;
|
||||||
import org.objectweb.jtests.jms.conform.selector.SelectorSyntaxTest;
|
import org.objectweb.jtests.jms.conform.selector.SelectorSyntaxTest;
|
||||||
|
@ -60,8 +61,8 @@ public class JoramJmsTest extends TestCase {
|
||||||
suite.addTestSuite(TemporaryTopicTest.class);
|
suite.addTestSuite(TemporaryTopicTest.class);
|
||||||
suite.addTestSuite(UnifiedSessionTest.class);
|
suite.addTestSuite(UnifiedSessionTest.class);
|
||||||
suite.addTestSuite(QueueBrowserTest.class);
|
suite.addTestSuite(QueueBrowserTest.class);
|
||||||
|
suite.addTestSuite(MessagePropertyTest.class);
|
||||||
// TODO: figure out why the following tests are failing..
|
// TODO: figure out why the following tests are failing..
|
||||||
// suite.addTestSuite(MessagePropertyTest.class);
|
|
||||||
// suite.addTestSuite(SelectorTest.class);
|
// suite.addTestSuite(SelectorTest.class);
|
||||||
return suite;
|
return suite;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue