Search in sources :

Example 1 with FailoverJmsConnection

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;
}
Also used : FailoverJmsConnection(com.adaptris.core.jms.FailoverJmsConnection) JmsConnection(com.adaptris.core.jms.JmsConnection) FailoverJmsConnection(com.adaptris.core.jms.FailoverJmsConnection)

Aggregations

FailoverJmsConnection (com.adaptris.core.jms.FailoverJmsConnection)1 JmsConnection (com.adaptris.core.jms.JmsConnection)1