Package org.jboss.messaging.core.contract

Examples of org.jboss.messaging.core.contract.Queue.activate()


            JMSCondition topicCond = new JMSCondition(false, jmsDestination.getName());

            postOffice.addBinding(new Binding(topicCond, queue, false), false);

            queue.activate();

            String counterName = TopicService.SUBSCRIPTION_MESSAGECOUNTER_PREFIX + queue.getName();

            int dayLimitToUse = mDest.getMessageCounterHistoryDayLimit();
            if (dayLimitToUse == -1)
View Full Code Here


               // Durable subs must be bound on ALL nodes of the cluster (if clustered)

               postOffice.addBinding(new Binding(new JMSCondition(false, jmsDestination.getName()), queue, true),
                                     postOffice.isClustered() && mDest.isClustered());

               queue.activate();

               //We don't create message counters on temp topics
               if (!mDest.isTemporary())
               {
                 String counterName = TopicService.SUBSCRIPTION_MESSAGECOUNTER_PREFIX + queue.getName();
View Full Code Here

                  // Durable subs must be bound on ALL nodes of the cluster

                  postOffice.addBinding(new Binding(new JMSCondition(false, jmsDestination.getName()), queue, true),
                                      postOffice.isClustered() && mDest.isClustered());

                  queue.activate();

                  if (!mDest.isTemporary())
                  {
                    createCounter = true;
                  }
View Full Code Here

                                        destination.getPageSize(),
                                        destination.getDownCacheSize());

                  queue.load();

                  queue.activate();

                  // Must be done after load
                  queue.setMaxSize(destination.getMaxSize());

                  // Create a counter
View Full Code Here

               {
                  log.trace(this + " inserted in binding locally");
               }
               queue2.load();

               queue2.activate();
            }
         }
     }
     
      synchronized (waitForBindUnbindLock)
View Full Code Here

            queue.setMaxSize(destination.getMaxSize());
           
            int delCounterLevel = DeliveringCounter.toLevel(getDeliveringCounterLevel());
            queue.setDeliveringCounterLevel(delCounterLevel);
           
            queue.activate();          
         }
         else
         {          
            // Create a new queue
View Full Code Here

                                       destination.getDownCacheSize(), destination.isClustered(),
                                       serverPeer.getRecoverDeliveriesTimeout(),
                                       ((ManagedQueue)destination).getDeliveringCounterLevel());
            po.addBinding(new Binding(queueCond, queue, false), false);
           
            queue.activate();
         }
        
         po.removeInactiveCondition(new JMSCondition(true, destination.getName()));
        
         ((ManagedQueue)destination).setQueue(queue);
View Full Code Here

                                        destination.getPageSize(),
                                        destination.getDownCacheSize());

                  queue.load();

                  queue.activate();

                  // Must be done after load
                  queue.setMaxSize(destination.getMaxSize());

                  // Create a counter
View Full Code Here

            JMSCondition topicCond = new JMSCondition(false, jmsDestination.getName());

            postOffice.addBinding(new Binding(topicCond, queue, false), false);

            queue.activate();

            String counterName = TopicService.SUBSCRIPTION_MESSAGECOUNTER_PREFIX + queue.getName();

            int dayLimitToUse = mDest.getMessageCounterHistoryDayLimit();
            if (dayLimitToUse == -1)
View Full Code Here

               // Durable subs must be bound on ALL nodes of the cluster (if clustered)

               postOffice.addBinding(new Binding(new JMSCondition(false, jmsDestination.getName()), queue, true),
                                     postOffice.isClustered() && mDest.isClustered());

               queue.activate();

               //We don't create message counters on temp topics
               if (!mDest.isTemporary())
               {
                 String counterName = TopicService.SUBSCRIPTION_MESSAGECOUNTER_PREFIX + queue.getName();
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.