Package org.activemq.message

Examples of org.activemq.message.ActiveMQTopic


        return filterFactory.createFilter(createDestination(subject), selector);
    }

    protected ActiveMQDestination createDestination(String subject) {
        if (isTopic()) {
            return new ActiveMQTopic(subject);
        }
        else {
            return new ActiveMQQueue(subject);
        }
    }
View Full Code Here


        return new ActiveMQMessage();
    }

    protected Destination createDestination(String subject) {
        if (topic) {
            return new ActiveMQTopic(subject);
        }
        else {
            return new ActiveMQQueue(subject);
        }
    }
View Full Code Here

        return createDestination(getClass().getName());
    }

    protected Destination createDestination(String name) {
        if (topic) {
            return new ActiveMQTopic(name);
        }
        else {
            return new ActiveMQQueue(name);
        }
    }
View Full Code Here

        packets = new ArrayList(TEST_SIZE);
        for (int i = 0; i < TEST_SIZE; i++) {
            ActiveMQMessage test = new ActiveMQMessage();
            test.setJMSMessageID("test:" + i);
            test.setExternalMessageId(true);
            test.setJMSDestination(new ActiveMQTopic(getName()));

            packets.add(test);
        }
    }
View Full Code Here

        dest = new ActiveMQQueue("Queue-"+System.currentTimeMillis());
        doTestAsynchRecover();
    }
   
    public void testTopicSynchRecover() throws JMSException, InterruptedException {
        dest = new ActiveMQTopic("Topic-"+System.currentTimeMillis());
        doTestSynchRecover();
    }
View Full Code Here

        dest = new ActiveMQTopic("Topic-"+System.currentTimeMillis());
        doTestSynchRecover();
    }

    public void testTopicAsynchRecover() throws JMSException, InterruptedException {
        dest = new ActiveMQTopic("Topic-"+System.currentTimeMillis());
        doTestAsynchRecover();
    }
View Full Code Here

        dest = new ActiveMQQueue("Queue-"+System.currentTimeMillis());
        doTestAsynchRecoverWithAutoAck();
    }

    public void testTopicAsynchRecoverWithAutoAck() throws JMSException, InterruptedException {
        dest = new ActiveMQTopic("Topic-"+System.currentTimeMillis());
        doTestAsynchRecoverWithAutoAck();
    }
View Full Code Here

      DestinationSecurityConfig config = new DestinationSecurityConfig();
      config.setBrokerName( brokerSecurityConfig.getBrokerName() );
      if( "queue".equals(type) ) {
        config.setDestination(new ActiveMQQueue(dest));
      } else {
        config.setDestination(new ActiveMQTopic(dest));
      }
      list.add(config);     
    }   
    destinationMap.put(type+":"+dest, list);   
  }
View Full Code Here

        if (started.commit(false, true)) {
           
            session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
           
            String advisoryName = ActiveMQDestination.CONNECTION_ADVISORY_PREFIX;
            Destination advisoryDestination = new ActiveMQTopic(advisoryName);
            MessageConsumer consumer = session.createConsumer(advisoryDestination);
            consumer.setMessageListener(this);
        }
    }
View Full Code Here

TOP

Related Classes of org.activemq.message.ActiveMQTopic

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.