Search in sources :

Example 11 with Protocol

use of org.apache.qpid.server.model.Protocol in project qpid-broker-j by apache.

the class Utils method getJmsProvider.

public static JmsProvider getJmsProvider() {
    Protocol protocol = getProtocol();
    JmsProvider jmsProvider;
    if (protocol == Protocol.AMQP_1_0) {
        jmsProvider = new QpidJmsClientProvider(new AmqpManagementFacade(protocol));
    } else {
        jmsProvider = new QpidJmsClient0xProvider();
    }
    return jmsProvider;
}
Also used : Protocol(org.apache.qpid.server.model.Protocol)

Aggregations

Protocol (org.apache.qpid.server.model.Protocol)11 Set (java.util.Set)4 IllegalConfigurationException (org.apache.qpid.server.configuration.IllegalConfigurationException)4 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 IOException (java.io.IOException)2 StringWriter (java.io.StringWriter)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 ConfiguredObject (org.apache.qpid.server.model.ConfiguredObject)2 QpidServiceLoader (org.apache.qpid.server.plugin.QpidServiceLoader)2 ConfiguredObjectRecord (org.apache.qpid.server.store.ConfiguredObjectRecord)2 TreeSet (java.util.TreeSet)1 UUID (java.util.UUID)1 ConfiguredObjectAttribute (org.apache.qpid.server.model.ConfiguredObjectAttribute)1 ConfiguredObjectTypeRegistry (org.apache.qpid.server.model.ConfiguredObjectTypeRegistry)1 ConfiguredSettableAttribute (org.apache.qpid.server.model.ConfiguredSettableAttribute)1 Model (org.apache.qpid.server.model.Model)1 ProtocolType (org.apache.qpid.server.model.Protocol.ProtocolType)1 SystemConfig (org.apache.qpid.server.model.SystemConfig)1 Transport (org.apache.qpid.server.model.Transport)1