Is it possible to connect to spring boot embedded ActiveMQ instance from another application(started in separate process)?

Just add a BrokerService bean to your application:

public class So48504265Application {

    public static void main(String[] args) {, args);

    public BrokerService broker() throws Exception {
        BrokerService broker = new BrokerService();
        return broker;

    public ApplicationRunner runner(JmsTemplate template) {
        return args -> template.convertAndSend("foo", "AMessage");

    @JmsListener(destination = "foo")
    public void listen(String in) {



and add this to your pom