Package org.servicemix.jbi.container

Examples of org.servicemix.jbi.container.SubscriptionSpec


    public List getMatchingSubscriptionEndpoints(MessageExchangeImpl exchange) {
        List result = null;
        for (Iterator iter = subscriptions.entrySet().iterator(); iter.hasNext();) {
            Map.Entry entry = (Map.Entry) iter.next();

            SubscriptionSpec subscription = (SubscriptionSpec) entry.getKey();
            if (subscription.matches(registry,exchange)) {
                if (result == null) {
                    result = new ArrayList();
                }
                InternalEndpoint endpoint = (InternalEndpoint) entry.getValue();
                result.add(endpoint);
View Full Code Here


    }
  }
 
  private ActivationSpec createReceiverAS(String id, Object component) {
    ActivationSpec as = new ActivationSpec(id, component);
    SubscriptionSpec ss = new SubscriptionSpec();
    ss.setService(SenderComponent.SERVICE);
    as.setSubscriptions(new SubscriptionSpec[] { ss });
    return as;
  }
View Full Code Here

    }
  }
 
  private ActivationSpec createReceiverAS(String id, Object component) {
    ActivationSpec as = new ActivationSpec(id, component);
    SubscriptionSpec ss = new SubscriptionSpec();
    ss.setService(SenderComponent.SERVICE);
    as.setSubscriptions(new SubscriptionSpec[] { ss });
    return as;
  }
View Full Code Here

        ActivationSpec activationSpec = (ActivationSpec) activationSpecs.get(0);
        SubscriptionSpec[] subscriptions = activationSpec.getSubscriptions();
        assertEquals("Size of subscriptions", 1, subscriptions.length);

        SubscriptionSpec subscription = subscriptions[0];

        QName producer = new QName(NAMESPACE, "producer");
        assertEquals("subscriber.service", producer, subscription.getService());
    }
View Full Code Here

TOP

Related Classes of org.servicemix.jbi.container.SubscriptionSpec

Copyright © 2018 www.massapicom. 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.