use of com.adaptris.core.jms.FailoverJmsConnection in project interlok by adaptris.
the class EmbeddedActiveMq method getFailoverJmsConnection.
public FailoverJmsConnection getFailoverJmsConnection(boolean isPtp) throws Exception {
FailoverJmsConnection result = new FailoverJmsConnection();
if (!isPtp) {
JmsConnection c = new JmsConnection(new BasicActiveMqImplementation(DEF_URL_PREFIX + "9999"));
result.addConnection(c);
result.addConnection(getJmsConnection(new BasicActiveMqImplementation(), true));
} else {
JmsConnection c = new JmsConnection(new BasicActiveMqImplementation(DEF_URL_PREFIX + "9999"));
result.addConnection(c);
result.addConnection(getJmsConnection(new BasicActiveMqImplementation(), true));
}
return result;
}
Aggregations