Package org.codehaus.activemq.message

Examples of org.codehaus.activemq.message.ActiveMQTopic


        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

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

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

    /**
     * Returns the destinations to which we consume
     */
    protected Destination[] getDestinations() {
        return new Destination[]{new ActiveMQTopic(getPrefix() + "FOO.BAR"), new ActiveMQTopic(getPrefix() + "FOO.*"), new ActiveMQTopic(getPrefix() + "FOO.X.Y")};
    }
View Full Code Here

    /**
     * Returns the destinations on which we publish
     */
    protected Destination[] getDestinations() {
        return new Destination[]{new ActiveMQTopic(getPrefix() + "FOO.BAR"), new ActiveMQTopic(getPrefix() + "BAR.WHATNOT.XYZ"), new ActiveMQTopic(getPrefix() + "FOO.X.Y")};
    }
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

        Collections.sort(actual);
        assertEquals("map value for destinationName:  " + destination, expectedList, actual);
    }

    protected ActiveMQDestination createDestination(String name) {
        return new ActiveMQTopic(name);
    }
View Full Code Here

    // Implementation methods
    //-------------------------------------------------------------------------
    protected MessageContainer createContainer(String destinationName) throws JMSException {
        TopicMessageContainer topicMessageContainer = persistenceAdapter.createTopicMessageContainer(destinationName);
        destinationMap.put(new ActiveMQTopic(destinationName), topicMessageContainer);
        return topicMessageContainer;
    }
View Full Code Here

        destinationMap.put(new ActiveMQTopic(destinationName), topicMessageContainer);
        return topicMessageContainer;
    }

    protected Destination createDestination(String destinationName) {
        return new ActiveMQTopic(destinationName);
    }
View Full Code Here

        this.messageId = "ID:ewrre-erer-err";
        this.transactedId = "45454";
        this.messageRead = true;
        this.persistent=true;
        this.xaTransacted = false;
        this.destination = new ActiveMQTopic("FOO.BAR");
  }
View Full Code Here

TOP

Related Classes of org.codehaus.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.