Package org.codehaus.stomp.jms

Examples of org.codehaus.stomp.jms.StompConnect


    props.setProperty("java.naming.factory.host""localhost");
    props.setProperty("java.naming.factory.port""16400");

    Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());

    connect = new StompConnect();
    connect.setConnectionFactory(cf);
    connect.start();
  }
View Full Code Here


* @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();
        }
View Full Code Here

TOP

Related Classes of org.codehaus.stomp.jms.StompConnect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.