Spring Boot Apache Artemis Embedded JMS Queue Eample
<p>I am trying to set up a simple Spring Boot application that uses an embedded JMS Queue. I am successful with HornetQ but when I try to convert to Artemis I am getting a failure on the ArtemisConnectionFactory. Here is my code that I use for HornetQ. Any help would be appreciative.</p>

<pre><code>package com.comporium.log.server;

import javax.jms.ConnectionFactory;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;
import org.springframework.jms.listener.DefaultMessageListenerContainer;

import com.comporium.log.server.services.LogListener;

@SpringBootApplication
public class Application {
@Autowired
private ConnectionFactory connectionFactory;

@Autowired
LogListener logListener;

@Bean
public DefaultMessageListenerContainer messageListener() {
    DefaultMessageListenerContainer container = new DefaultMessageListenerContainer();
    container.setConnectionFactory(this.connectionFactory);
    container.setDestinationName("loggerQueue");
    container.setMessageListener(logListener);
    return container;
}

public static void main(String[] args) throws Exception {
    SpringApplication.run(Application.class, args);
   }
}
</code></pre>