use of com.adaptris.core.jms.UrlVendorImplementation in project interlok by adaptris.
the class AdvancedActiveMqConsumerTest method retrieveObjectForSampleConfig.
@Override
protected Object retrieveObjectForSampleConfig() {
JmsConnection connection = new JmsConnection();
PtpConsumer producer = new PtpConsumer();
producer.setQueue("destination");
UrlVendorImplementation vendorImpl = createImpl();
vendorImpl.setBrokerUrl(BasicActiveMqImplementationTest.PRIMARY);
connection.setUserName("BrokerUsername");
connection.setPassword("BrokerPassword");
connection.setVendorImplementation(vendorImpl);
StandaloneConsumer result = new StandaloneConsumer();
result.setConnection(connection);
result.setConsumer(producer);
return result;
}
use of com.adaptris.core.jms.UrlVendorImplementation in project interlok by adaptris.
the class AdvancedActiveMqProducerTest method retrieveObjectForSampleConfig.
@Override
protected Object retrieveObjectForSampleConfig() {
JmsConnection connection = new JmsConnection();
PtpProducer producer = new PtpProducer();
producer.setQueue("destination");
UrlVendorImplementation vendorImpl = createImpl();
vendorImpl.setBrokerUrl(BasicActiveMqImplementationTest.PRIMARY);
connection.setUserName("BrokerUsername");
connection.setPassword("BrokerPassword");
connection.setVendorImplementation(vendorImpl);
StandaloneProducer result = new StandaloneProducer();
result.setConnection(connection);
result.setProducer(producer);
return result;
}
use of com.adaptris.core.jms.UrlVendorImplementation in project interlok by adaptris.
the class BasicActiveMqProducerTest method retrieveObjectForSampleConfig.
@Override
protected Object retrieveObjectForSampleConfig() {
JmsConnection connection = new JmsConnection();
PtpProducer producer = new PtpProducer();
producer.setQueue("queueName");
UrlVendorImplementation vendorImpl = createImpl();
vendorImpl.setBrokerUrl(BasicActiveMqImplementationTest.PRIMARY);
connection.setUserName("BrokerUsername");
connection.setPassword("BrokerPassword");
connection.setVendorImplementation(vendorImpl);
StandaloneProducer result = new StandaloneProducer();
result.setConnection(connection);
result.setProducer(producer);
return result;
}
use of com.adaptris.core.jms.UrlVendorImplementation in project interlok by adaptris.
the class BasicActiveMqConsumerTest method retrieveObjectForSampleConfig.
@Override
protected Object retrieveObjectForSampleConfig() {
JmsConnection connection = new JmsConnection();
PtpConsumer producer = new PtpConsumer();
producer.setQueue("destination");
UrlVendorImplementation vendorImpl = createImpl();
vendorImpl.setBrokerUrl(BasicActiveMqImplementationTest.PRIMARY);
connection.setUserName("BrokerUsername");
connection.setPassword("BrokerPassword");
connection.setVendorImplementation(vendorImpl);
StandaloneConsumer result = new StandaloneConsumer();
result.setConnection(connection);
result.setConsumer(producer);
return result;
}
use of com.adaptris.core.jms.UrlVendorImplementation in project interlok by adaptris.
the class ChannelTest method createMockJmsConnection.
private MockJmsConnection createMockJmsConnection(String uid, String brokerUrl) {
MockJmsConnection connection = new MockJmsConnection();
if (uid != null)
connection.setUniqueId(uid);
UrlVendorImplementation vendorImp = new UrlVendorImplementation() {
@Override
public ConnectionFactory createConnectionFactory() throws JMSException {
return null;
}
};
vendorImp.setBrokerUrl(brokerUrl);
connection.setVendorImplementation(vendorImp);
connection.setConnectionErrorHandler(new MockNoOpConnectionErrorHandler());
return connection;
}
Aggregations