* @version $Revision: 52 $
*/
public class ActiveMQStompConnect {
public static void main(String[] args) {
try {
StompConnect connect = new StompConnect();
String url = "vm://localhost?broker.persistent=false&broker.useJmx=false";
if (args.length > 0) {
url = args[0];
}
// connect.setConnectionFactory(new ActiveMQConnectionFactory(url));
connect.start();
connect.join();
}
catch (Exception e) {
System.out.println("Caught: " + e);
e.printStackTrace();
}