3334353637383940414243
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(); }