All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.artemis.jms.runtime.ArtemisJmsRecorder Maven / Gradle / Ivy

There is a newer version: 3.0.0.Beta1
Show newest version
package io.quarkus.artemis.jms.runtime;

import java.util.function.Supplier;

import javax.jms.ConnectionFactory;

import org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory;

import io.quarkus.artemis.core.runtime.ArtemisRuntimeConfig;
import io.quarkus.runtime.annotations.Recorder;

@Recorder
public class ArtemisJmsRecorder {

    public Supplier getConnectionFactorySupplier(ArtemisRuntimeConfig config) {
        return new Supplier() {
            @Override
            public ConnectionFactory get() {
                return new ActiveMQJMSConnectionFactory(config.url, config.username.orElse(null), config.password.orElse(null));
            }
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy