Is there a w开发者_JAVA技巧ay to run ActiveMq offline?
It depends on what you mean by offline.
You can start a broker inside of a Java application simply by creating a ConnectionFactory like so: 
ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
This broker would only be accessible from within the Java application where it was created using the vm://localhost transport. 
Bruce
Yes, you can do something like "running offline" by embedding broker into JVM. This is usually done for (unit) testing.
BrokerService broker = new BrokerService();
// configure the broker
broker.addConnector("tcp://localhost:61616");
broker.start();
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论