It's really weird cause if I run this logic in a simple java class it works
fine.

Even if I change it to not use the message listener but just receive a
message I still never receive anything.  Anyone have any ideas why this
would be?

 public void startMessageListener() { 
    try { 
      ActiveMQConnectionFactory factory = new
ActiveMQConnectionFactory("tcp://1.2.3.4:61616"); 
      connection = factory.createConnection(); 
      session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); 
      topic = session.createTopic("myTopic"); 
      MessageConsumer consumer = session.createConsumer(topic); 
      connection.start(); 
      *System.out.println("Waiting to receive.");
      Message m = consumer.receive(100000);
      System.out.println("Done!");*    } catch (Exception e) { 
      e.printStackTrace(); 
    } 


--
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/JMS-Message-Listener-tp3350099p3350358.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to