Examples of CarbonNotificationManager


Examples of org.wso2.carbon.event.broker.CarbonNotificationManager

  }
 
  public void testBasicPubSub() throws Exception{
    EventBrokerService brokerInstance = CarbonEventBroker.getInstance();
    ((CarbonEventBroker)brokerInstance).registerSubscriptionManager(new InMemorySubscriptionManager());
    CarbonNotificationManager notifyManager = new CarbonNotificationManager();
    notifyManager.init(new HashMap<String, String>());
    ((CarbonEventBroker)brokerInstance).registerNotificationManager(notifyManager);
   
    Subscription subscription = new Subscription();
    String topic = "testTopic";
    subscription.setFilterDesc(new EventFilterDesc(null, topic));
View Full Code Here

Examples of org.wso2.carbon.event.broker.CarbonNotificationManager

                    throw (ClassNotFoundException)e;
                }
                throw new ActivationException(message, e);
            }*/
        }else{
            notificationManager = new CarbonNotificationManager();
            ((CarbonNotificationManager)notificationManager).init(new HashMap<String, String>());
            subscriptionManager = new EmbeddedRegistryBasedSubscriptionManager();
        }

        try {
View Full Code Here

Examples of org.wso2.carbon.event.core.internal.notify.CarbonNotificationManager

    private ExecutorService executor;

    public void init() throws EventBrokerConfigurationException {

        this.notificationManager = new CarbonNotificationManager();
        // we pass the notification manager to delivery manager. Then delivery manager calls the
        // notify method with the given subscription details.
        // this way delivery manager can use the persisted repository of the subscription manager
        // to notify subscriptions if wanted.
        this.delivaryManager.setNotificationManager(this.notificationManager);
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.