Package org.apache.activemq.command

Examples of org.apache.activemq.command.ActiveMQQueue


   *            JobId
   * @return {@code ActiveMQQueue} TaskQueue
   */
  public String createTaskQueue(String jobId) {
    String queueName = JMSNamingSupport.getTaskQueueName(jobId);
    new ActiveMQQueue(queueName);
   
    // Clean Up Hook
    CleanUpSupport.removeQueueWhenFinished(jobId, queueName);
   
    return queueName;
View Full Code Here


   *            JobId
   * @return {@code ActiveMQQueue} ResultQueue
   */
  public String createResultQueue(String jobId) {
    String queueName = JMSNamingSupport.getResultQueueName(jobId);
    new ActiveMQQueue(queueName);
   
    // Clean Up Hook
    CleanUpSupport.removeQueueWhenFinished(jobId, queueName, null);
   
    return queueName;
View Full Code Here

   *            JobId
   * @return {@code ActiveMQQueue} FutureQueue
   */
  public String createFutureQueue(String jobId) {
    String queueName = JMSNamingSupport.getFutureQueueName(jobId);
    new ActiveMQQueue(queueName);
    return queueName;
  }
View Full Code Here

     
      // Configure Network Connection
      con.addStaticallyIncludedDestination(new ActiveMQTopic("nebula.cluster.service.topic"));
      con.setConduitSubscriptions(false);
      con.setDynamicOnly(true)// Do not forward if no consumers
      con.addExcludedDestination(new ActiveMQQueue("nebula.cluster.registration.queue"));
      con.addExcludedDestination(new ActiveMQQueue("nebula.cluster.services.facade.queue"));
      con.setNetworkTTL(128);    // Default TTL
      con.setDuplex(true);    // Full-duplex communication
      con.start();

      peers.put(url, con);
View Full Code Here

   * @return Message Listener Container
   */
  public static <T> DefaultMessageListenerContainer createService(
      ConnectionFactory cf, String queueName, T service, Class<T> serviceClass) {

    ActiveMQQueue queue = new ActiveMQQueue(queueName);

    // Export Service
    JmsInvokerServiceExporter exporter = new JmsInvokerServiceExporter();
    exporter.setServiceInterface(serviceClass);
    exporter.setService(service);
View Full Code Here

    if (con!=null) {
      // con.addExcludedDestination(new ActiveMQQueue(">"));
      con.addStaticallyIncludedDestination(new ActiveMQTopic("nebula.cluster.service.topic"));
      con.setConduitSubscriptions(false);
      con.setDynamicOnly(true);
      con.addExcludedDestination(new ActiveMQQueue("nebula.cluster.registration.queue"));
      con.addExcludedDestination(new ActiveMQQueue("nebula.cluster.services.facade.queue"));
      con.setNetworkTTL(128);
      con.start();
    }

//    System.out.println("Press any key to Shutdown");
View Full Code Here

            for (DestinationInterceptor interceptor : destinationInterceptors) {
                if (interceptor instanceof VirtualDestinationInterceptor) {
                    VirtualDestinationInterceptor virtualDestinationInterceptor = (VirtualDestinationInterceptor) interceptor;
                    for (VirtualDestination virtualDestination: virtualDestinationInterceptor.getVirtualDestinations()) {
                        if (virtualDestination instanceof VirtualTopic) {
                            consumerDestinations.add(new ActiveMQQueue(((VirtualTopic) virtualDestination).getPrefix() + DestinationFilter.ANY_DESCENDENT));
                        }
                    }
                }
            }
            ActiveMQQueue filter = new ActiveMQQueue();
            filter.setCompositeDestinations(consumerDestinations.toArray(new ActiveMQDestination[]{}));
            virtualConsumerDestinationFilter = DestinationFilter.parseFilter(filter);
        }
        return virtualConsumerDestinationFilter;
    }
View Full Code Here

        if (destinationPerDurableSubscriber && subscription instanceof DurableTopicSubscription) {
            name += "." + ((DurableTopicSubscription)subscription).getSubscriptionKey();
        }
        if (useQueue) {
            return new ActiveMQQueue(name);
        } else {
            return new ActiveMQTopic(name);
        }
    }
View Full Code Here

        stompConnect();

        ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory(jmsUri);
        connection = cf.createConnection("system", "manager");
        session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
        queue = new ActiveMQQueue(getQueueName());
        connection.start();
    }
View Full Code Here

        assertEquals("Dejan", object.getName());
    }

    public void testTransformationSubscribeXML() throws Exception {

        MessageProducer producer = session.createProducer(new ActiveMQQueue("USERS." + getQueueName()));
        ObjectMessage message = session.createObjectMessage(new SamplePojo("Dejan", "Belgrade"));
        producer.send(message);

        String frame = "CONNECT\n" + "login:system\n" + "passcode:manager\n\n" + Stomp.NULL;
        stompConnection.sendFrame(frame);
View Full Code Here

TOP

Related Classes of org.apache.activemq.command.ActiveMQQueue

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.