Package org.jboss.messaging.core.contract

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


         bindings = office3.getAllBindings();        
         assertTrue(bindings.isEmpty());
        
         //Bind again different node
         Queue queue2 = new MessagingQueue(2, "sub2", channelIDManager.getID(), ms, pm, true, -1, null, true);
         queue2.activate();
        
         added = office2.addBinding(new Binding(condition1, queue2, true), true);
         assertTrue(added);
        
         Thread.sleep(3000);
View Full Code Here


         office2 = createClusteredPostOffice(2);
         office3 = createClusteredPostOffice(3);        
                          
         //Durable
         Queue queue1 = new MessagingQueue(1, "sub1", channelIDManager.getID(), ms, pm, true, -1, null, true);
         queue1.activate();

         Condition condition1 = new SimpleCondition("condition1");
        
         //Add all binding
         boolean added = office1.addBinding(new Binding(condition1, queue1, true), true);
View Full Code Here

      {                         
         office1 = createClusteredPostOffice(1);      
                             
         //Durable
         Queue queue1 = new MessagingQueue(1, "sub1", channelIDManager.getID(), ms, pm, true, -1, null, true);
         queue1.activate();

         Condition condition1 = new SimpleCondition("condition1");
        
         //Add all binding
         boolean added = office1.addBinding(new Binding(condition1, queue1, true), true);
View Full Code Here

      {                         
         office1 = createClusteredPostOffice(1);      
                          
         //Durable
         Queue queue1 = new MessagingQueue(1, "sub1", channelIDManager.getID(), ms, pm, true, -1, null, true);
         queue1.activate();

         Condition condition1 = new SimpleCondition("condition1");
        
         //Add all binding
         boolean added = office1.addBinding(new Binding(condition1, queue1, true), true);
View Full Code Here

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

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

         boolean deactivate = false;

         if (!queue.isActive())
         {
           queue.activate();

           deactivate = true;
         }

         queue.handle(null, ref, tx);
View Full Code Here

            boolean deactivate = false;

            if (!queue.isActive())
            {
              queue.activate();

              deactivate = true;
            }

            del.acknowledge(tx);
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();
         }
        
         ((ManagedQueue)destination).setQueue(queue);
        
         String counterName = QUEUE_MESSAGECOUNTER_PREFIX + destination.getName();
View Full Code Here

           // make a binding for this temporary queue

            // temporary queues need to bound on ALL nodes of the cluster
            postOffice.addBinding(new Binding(cond, coreQueue, true), postOffice.isClustered());

            coreQueue.activate();
         }
      }
      catch (Throwable t)
      {
         throw ExceptionUtil.handleJMSInvocation(t, this + " addTemporaryDestination");
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.