Examples of SharedDeadLetterStrategy


Examples of org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy

        broker.setUseJmx(true);
        broker.setDedicatedTaskRunner(false);
        broker.setAdvisorySupport(false);
        broker.setDeleteAllMessagesOnStartup(true);

        SharedDeadLetterStrategy strategy = new SharedDeadLetterStrategy();
        strategy.setProcessExpired(false);
        strategy.setProcessNonPersistent(false);

        PolicyEntry defaultPolicy = new PolicyEntry();
        defaultPolicy.setQueue(">");
        defaultPolicy.setOptimizedDispatch(true);
        defaultPolicy.setDeadLetterStrategy(strategy);
View Full Code Here

Examples of org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy

        policyMap.put(new ActiveMQQueue("TEST"), policy);
        policyMap.put(new ActiveMQTopic("TEST"), policy);

        // do not process expired for one test
        PolicyEntry ignoreExpired = new PolicyEntry();
        SharedDeadLetterStrategy ignoreExpiredStrategy = new SharedDeadLetterStrategy();
        ignoreExpiredStrategy.setProcessExpired(false);
        ignoreExpired.setDeadLetterStrategy(ignoreExpiredStrategy);
        policyMap.put(new ActiveMQTopic("TEST_CLEANUP_NO_PRIORITY"), ignoreExpired);

        broker.setDestinationPolicy(policyMap);
        broker.start();
View Full Code Here

Examples of org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy

      } else {
        tcpConnector.setName(DEFAULT_BROKER_URL_KEY);
      }
      broker.setUseJmx(useJmx);
      PolicyEntry policy = new PolicyEntry();
      policy.setDeadLetterStrategy(new SharedDeadLetterStrategy());

      PolicyMap pMap = new PolicyMap();
      pMap.setDefaultEntry(policy);

      broker.setDestinationPolicy(pMap);
View Full Code Here

Examples of org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy

      BrokerService broker = BrokerFactory.createBroker(new URI("broker:()/" + hostName + "?persistent=false"));
      tcpConnector = broker.addConnector(uri);
     
     
      PolicyEntry policy = new PolicyEntry();
          policy.setDeadLetterStrategy(new SharedDeadLetterStrategy());

          PolicyMap pMap = new PolicyMap();
          pMap.setDefaultEntry(policy);

          broker.setDestinationPolicy(pMap);
View Full Code Here

Examples of org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy

      broker.setUseJmx(useJmx);
      if ( useJmx) {
        broker.getManagementContext().setConnectorPort(1097);
      }
      PolicyEntry policy = new PolicyEntry();
      policy.setDeadLetterStrategy(new SharedDeadLetterStrategy());

      PolicyMap pMap = new PolicyMap();
      pMap.setDefaultEntry(policy);

      broker.setDestinationPolicy(pMap);
View Full Code Here

Examples of org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy

      } else {
        tcpConnector.setName(DEFAULT_BROKER_URL_KEY);
      }
      broker.setUseJmx(useJmx);
      PolicyEntry policy = new PolicyEntry();
      policy.setDeadLetterStrategy(new SharedDeadLetterStrategy());

      PolicyMap pMap = new PolicyMap();
      pMap.setDefaultEntry(policy);

      broker.setDestinationPolicy(pMap);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.