Package org.codehaus.activemq.message

Examples of org.codehaus.activemq.message.ActiveMQTopic


            info.setClientId(brokerClientID);
            info.setStarted(true);
            client.consumeConnectionInfo(info);

            ConsumerInfo consumerInfo = new ConsumerInfo();
            consumerInfo.setDestination(new ActiveMQTopic(">"));
            consumerInfo.setNoLocal(true);
            consumerInfo.setClientId(brokerClientID);
            consumerInfo.setConsumerId(idGenerator.generateId());
            consumerInfo.setId(consumerInfo.getConsumerId());
            consumerInfo.setStarted(true);
View Full Code Here


        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

    protected WireFormat format = new JabberWireFormat();

    public void testWrite() throws Exception {
        ActiveMQTextMessage message = new ActiveMQTextMessage();
        message.setJMSType("id");
        message.setJMSReplyTo(new ActiveMQTopic("my.source"));
        message.setJMSDestination(new ActiveMQTopic("my.target"));
        message.setJMSCorrelationID("abc123");
        message.setText("<body>hello there </body>");

        ByteArrayOutputStream buffer = new ByteArrayOutputStream();
        DataOutputStream out = new DataOutputStream(buffer);
View Full Code Here

            Destination dest = null;

            if ("javax.jms.Queue".equals(activationSpec.getDestinationType())) {
                dest = new ActiveMQQueue(activationSpec.getDestinationName());
            } else if ("javax.jms.Topic".equals(activationSpec.getDestinationType())) {
                dest = new ActiveMQTopic(activationSpec.getDestinationName());
            } else {
                throw new ResourceException("Unknown destination type: " + activationSpec.getDestinationType());
            }
           
            if (emptyToNull(activationSpec.getDurableSubscriptionName()) != null) {
View Full Code Here

  protected void setUp() throws Exception {
    super.setUp();
    this.jmsMessageID = "testid";
    this.jmsClientID = "testclientid";
    this.jmsCorrelationID = "testcorrelationid";
    this.jmsDestination = new ActiveMQTopic("test.topic");
    this.jmsReplyTo = new ActiveMQTemporaryTopic("test.replyto.topic");
    this.jmsDeliveryMode = Message.DEFAULT_DELIVERY_MODE;
    this.jmsRedelivered = true;
    this.jmsType = "test type";
    this.jmsExpiration = 100000;
View Full Code Here

    super.setUp();
    this.consumerId = "testConsumerId";
    this.clientId = "testclientId";
    this.subscriberName = "testsubscriberName";
    this.selector = "testselector";
    this.destination = new ActiveMQTopic("testtopic");
    this.startTime = System.currentTimeMillis();
    this.started = true;
    this.consumerNo = 3;
        this.prefetchNumber = 13;
  }
View Full Code Here

    /**
     * Factory method to create new Topic instances
     */
    protected Topic createTopic(String name) {
        return new ActiveMQTopic(name);
    }
View Full Code Here

    protected String URL = ActiveMQConnection.DEFAULT_URL;

    protected Destination createDestination() {
        String subject = getClass().getName();
        if (isTopic) {
            return new ActiveMQTopic(subject);
        }
        else {
            return new ActiveMQQueue(subject);
        }
    }
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

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.