use of com.adaptris.util.KeyValuePair in project interlok by adaptris.
the class EmbeddedArtemis method getJmsConnection.
public JmsConnection getJmsConnection() {
StandardJndiImplementation standardJndiImplementation = new StandardJndiImplementation("ConnectionFactory");
standardJndiImplementation.getJndiParams().addKeyValuePair(new KeyValuePair("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"));
standardJndiImplementation.getJndiParams().addKeyValuePair(new KeyValuePair("java.naming.provider.url", "vm:/1"));
return applyCfg(new JmsConnection(), standardJndiImplementation, false);
}
use of com.adaptris.util.KeyValuePair in project interlok by adaptris.
the class SimpleFactoryConfigurationTest method testApplyQueueConnectionFactory_NonLong.
@Test
public void testApplyQueueConnectionFactory_NonLong() throws Exception {
SimpleFactoryConfiguration extras = create(new KeyValuePair(SOME_LONG_VALUE, "fred"));
DummyConnectionFactory mycf = new DummyConnectionFactory();
extras.applyConfiguration(mycf);
doBaseAssertions(mycf);
}
use of com.adaptris.util.KeyValuePair in project interlok by adaptris.
the class SimpleFactoryConfigurationTest method testApplyTopicConnectionFactory_TwoParams.
@Test
public void testApplyTopicConnectionFactory_TwoParams() throws Exception {
SimpleFactoryConfiguration extras = create(new KeyValuePair(TWO_VALUES_TOGETHER, "fred"));
DummyConnectionFactory mycf = new DummyConnectionFactory();
extras.applyConfiguration(mycf);
doBaseAssertions(mycf);
}
use of com.adaptris.util.KeyValuePair in project interlok by adaptris.
the class SimpleFactoryConfigurationTest method testApplyTopicConnectionFactory_NoSetter.
@Test
public void testApplyTopicConnectionFactory_NoSetter() throws Exception {
SimpleFactoryConfiguration extras = create(new KeyValuePair("HelloThere", "fred"));
DummyConnectionFactory mycf = new DummyConnectionFactory();
extras.applyConfiguration(mycf);
doBaseAssertions(mycf);
}
use of com.adaptris.util.KeyValuePair in project interlok by adaptris.
the class SimpleFactoryConfigurationTest method testApplyQueueConnectionFactory_Object.
@Test
public void testApplyQueueConnectionFactory_Object() throws Exception {
SimpleFactoryConfiguration extras = create(new KeyValuePair(SOME_OBJECT_VALUE, "fred"));
DummyConnectionFactory mycf = new DummyConnectionFactory();
extras.applyConfiguration(mycf);
doBaseAssertions(mycf);
}
Aggregations