Examples of Bindings


Examples of org.hornetq.core.postoffice.Bindings

         // but we don't do it every time, otherwise it wouldn't be optimal
         cleanupInternalPropertiesBeforeRouting(message);
      }


      Bindings bindings = addressManager.getBindingsForRoutingAddress(address);

      if (bindings != null)
      {
         bindings.route(message, context);
      }
      else
      {
        // this is a debug and not warn because this could be a regular scenario on publish-subscribe queues (or topic subscriptions on JMS)
        if (log.isDebugEnabled())
View Full Code Here

Examples of org.hornetq.core.postoffice.Bindings

      // We have to copy the message and store it separately, otherwise we may lose remote bindings in case of restart before the message
      // arrived the target node
      // as described on https://issues.jboss.org/browse/JBPAPP-6130
      ServerMessage copyRedistribute = message.copy(storageManager.generateUniqueID());

      Bindings bindings = addressManager.getBindingsForRoutingAddress(message.getAddress());

      if (bindings != null)
      {
         RoutingContext context = new RoutingContextImpl(tx);

         boolean routed = bindings.redistribute(copyRedistribute, originatingQueue, context);

         if (routed)
         {
            return new Pair<RoutingContext, ServerMessage> (context, copyRedistribute);
         }
View Full Code Here

Examples of org.hornetq.core.postoffice.Bindings

      if (address.equals(managementAddress))
      {
         return new BindingQueryResult(true, names);
      }

      Bindings bindings = postOffice.getMatchingBindings(address);

      for (Binding binding : bindings.getBindings())
      {
         if (binding.getType() == BindingType.LOCAL_QUEUE || binding.getType() == BindingType.REMOTE_QUEUE)
         {
            names.add(binding.getUniqueName());
         }
View Full Code Here

Examples of org.hornetq.core.postoffice.Bindings

   {
      SimpleString expiryAddress = addressSettingsRepository.getMatch(address.toString()).getExpiryAddress();

      if (expiryAddress != null)
      {
         Bindings bindingList = postOffice.getBindingsForAddress(expiryAddress);

         if (bindingList.getBindings().isEmpty())
         {
            QueueImpl.log.warn("Message has expired. No bindings for Expiry Address " + expiryAddress +
                               " so dropping it");
         }
         else
View Full Code Here

Examples of org.hornetq.core.postoffice.Bindings

   private void sendToDeadLetterAddress(final MessageReference ref, final  SimpleString deadLetterAddress) throws Exception
   {
      if (deadLetterAddress != null)
      {
         Bindings bindingList = postOffice.getBindingsForAddress(deadLetterAddress);

         if (bindingList.getBindings().isEmpty())
         {
            QueueImpl.log.warn("Message " + ref + " has exceeded max delivery attempts. No bindings for Dead Letter Address " + deadLetterAddress +
                               " so dropping it");
            acknowledge(ref);
         }
View Full Code Here

Examples of org.jboss.byteman.rule.binding.Bindings

    {
        if (bindingIndicesSet) {
            return;
        }

        Bindings bindings = rule.getBindings();
        Iterator<Binding> iterator = bindings.iterator();
        List<Binding> aliasBindings = new ArrayList<Binding>();
        int argLocalIndex = 0;

        // if this is an instance method then the local 0 holds this and args start at local index 1

        if ((access & Opcodes.ACC_STATIC) == 0) {
            argLocalIndex += 1;
        }

        // compute the local indices of each method parameter

        for (int i = 0; i < argumentTypes.length; i++) {
            argLocalIndices[i] = argLocalIndex;
            argLocalIndex += argumentTypes[i].getSize();
        }

        // check the local var bindings and, if any of them are actually refereces to method params
        // alias them to the corresponding param binding

        while (iterator.hasNext()) {
            Binding binding = iterator.next();
            if  (binding.isLocalVar()){
                int localIdx = binding.getLocalIndex();
                if (localIdx < argLocalIndex) {
                    binding = alias(binding, bindings, localIdx);
                    if (binding != null) {
                        // the aliased param binding was not present so ensure it gets added to the
                        // binding set once we have finished iterating. there is no need to add it
                        // to the call bindings since we pass the aliased method param instead
                        aliasBindings.add(binding);
                    }
                } else {
                    callArrayBindings.add(binding);
                }
            }
        }

        bindings.addBindings(aliasBindings);
       
        // now iterate over the param vars and ensure they go into the call bindings list

        iterator = bindings.iterator();
       
        while (iterator.hasNext()) {
            Binding binding = iterator.next();
            if (binding.isParam()) {
                callArrayBindings.add(binding);
View Full Code Here

Examples of org.jbpm.pvm.internal.xml.Bindings

      } else {
        parse.addProblem("class is a required attribute in a binding "+XmlUtil.toString(bindingElement), documentElement);
      }
     
      if (binding!=null) {
        Bindings bindings = parse.findObject(Bindings.class);
        bindings.addBinding(binding);
      }
    }
   
    return null;
  }
View Full Code Here

Examples of org.jbpm.xml.Bindings

        }
       
        if ( (tagName!=null)
             && (binding!=null)
           ) {
          Bindings bindings = parse.findObject(Bindings.class);
          bindings.addBinding(tagName, binding, category);
        } else {
          log.warning("binding for "+tagName+" could not be parsed. See parsing problems for more details.");
        }
      }
    }
View Full Code Here

Examples of org.jitterbit.ui.property.Bindings

        bindProperties();
        layoutPage();
    }

    private void bindProperties() {
        Bindings bindings = new Bindings(
            new WaitStateBinding(opHistoryModel, OperationHistoryModel.TALKING_TO_SERVER, this),
            new WaitStateBinding(sourceHistoryModel, SourceHistoryModel.TALKING_TO_SERVER, this),
            ActionEnabledBinding.forBoolean(deleteHistoryAction, sourceHistoryModel,
                            SourceHistoryModel.HAVE_ITEMS_TO_DELETE));
        bindings.syncUi();
    }
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.