Examples of deActivate()


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

         queue.handle(null, ref, tx);

         if (deactivate)
         {
           queue.deactivate();
         }
      }
   }

   /**
 
View Full Code Here

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

            del.acknowledge(tx);

            if (deactivate)
            {
              queue.deactivate();
            }
         }
         catch (Throwable t)
         {
            log.error("Failed to acknowledge " + del + " during recovery", t);
View Full Code Here

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

         {
            //https://jira.jboss.org/jira/browse/JBMESSAGING-1698
            log.warn("Cannot find counter to unregister " + counterName);
         }
        
         queue.deactivate();
        
         queue.unload();
        
         started = false;
        
View Full Code Here

Examples of org.jboss.messaging.core.impl.MessagingQueue.deactivate()

         queue6.getLocalDistributor().add(receiver6);
        
         queue1.deactivate();
         queue2.deactivate();
         queue5.deactivate();
         queue6.deactivate();
        
         assertFalse(queue1.isActive());     
         assertFalse(queue2.isActive());
         assertFalse(queue5.isActive());
         assertFalse(queue6.isActive());
View Full Code Here

Examples of org.jboss.messaging.core.local.PagingFilteredQueue.deactivate()

               {
                  ((ClusteredPostOffice)postOffice).unbindClusteredQueue(queue.getName());
               }
            }
                       
            queue.deactivate();
            queue.unload();
           
            //unregister counter
            String counterName = SUBSCRIPTION_MESSAGECOUNTER_PREFIX + queue.getName();
           
View Full Code Here

Examples of org.jboss.weld.context.ConversationContext.deactivate()

      catch (Exception e)
      {
      }
      try
      {
         conversationContext.deactivate();
      }
      catch (Exception e)
      {
      }
   }
View Full Code Here

Examples of org.jboss.weld.context.ManagedContext.deactivate()

    public void destroyContext(Context context) {
        context = ForwardingContext.unwrap(context);
        if (context instanceof ManagedContext) {
            ManagedContext managedContext = (ManagedContext) context;
            managedContext.invalidate();
            managedContext.deactivate();
            managedContext.activate();
        } else if (context instanceof ApplicationContext) {
            ((ApplicationContext) context).invalidate();
        } else {
            throw new UnsupportedOperationException();
View Full Code Here

Examples of org.jboss.weld.context.RequestContext.deactivate()

   {
      RequestContext requestContext = instance().select(RequestContext.class, UnboundLiteral.INSTANCE).get();
      if (requestContext.isActive())
      {
         requestContext.invalidate();
         requestContext.deactivate();
      }
     
      // TODO deactivate the conversation context
     
      BoundSessionContext sessionContext = instance().select(BoundSessionContext.class).get();
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.deactivate()

                final Bean<BoundConversationContext> conversationContextBean = (Bean<BoundConversationContext>) manager
                        .resolve(manager.getBeans(BoundConversationContext.class, BoundLiteral.INSTANCE));
                ctx = manager.createCreationalContext(conversationContextBean);
                final BoundConversationContext conversationContext = (BoundConversationContext) manager.getReference(
                        conversationContextBean, BoundConversationContext.class, ctx);
                conversationContext.deactivate();
                conversationContext.dissociate(boundRequests.get());
            }
        } catch (NamingException e) {
            log.error("Failed to tear down Weld contexts", e);
        } finally {
View Full Code Here

Examples of org.jboss.weld.context.bound.BoundConversationContext.deactivate()

                final Bean<BoundConversationContext> conversationContextBean = (Bean<BoundConversationContext>) manager
                        .resolve(manager.getBeans(BoundConversationContext.class, BoundLiteral.INSTANCE));
                ctx = manager.createCreationalContext(conversationContextBean);
                final BoundConversationContext conversationContext = (BoundConversationContext) manager.getReference(
                        conversationContextBean, BoundConversationContext.class, ctx);
                conversationContext.deactivate();
                conversationContext.dissociate(boundRequests.get());
            }
        } catch (NamingException e) {
            WeldLogger.ROOT_LOGGER.failedToTearDownWeldContexts(e);
        } finally {
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.