Examples of subscribe()


Examples of org.apache.muse.ws.notification.NotificationProducer.subscribe()

            EndpointReference epr = new EndpointReference(eprXML);
           
            NotificationProducer wsn =
                (NotificationProducer)getResource().getCapability(WsnConstants.PRODUCER_URI);
           
            wsn.subscribe(epr, new TopicFilter(MuwsConstants.ADV_ME_CREATION_TOPIC), null, null);
            wsn.subscribe(epr, new TopicFilter(MuwsConstants.ADV_ME_DESTRUCTION_TOPIC), null, null);
        }
    }
}
View Full Code Here

Examples of org.apache.muse.ws.notification.remote.NotificationProducerClient.subscribe()

            //
            // null filter == send all messages to consumer
            //
            NotificationProducerClient producer = new NotificationProducerClient(epr);
            producer.setTrace(true);
            producer.subscribe(consumer, null, null);
        }
       
        catch (Throwable error)
        {
            error.printStackTrace();
View Full Code Here

Examples of org.apache.qpid.proton.messenger.Messenger.subscribe()

    private void run() {
        try {
            Messenger mng = new MessengerImpl();
            mng.start();
            for (String a : addrs) {
                mng.subscribe(a);
            }
            int ct = 0;
            boolean done = false;
            while (!done) {
                mng.recv();
View Full Code Here

Examples of org.apache.qpid.proton.messenger.impl.MessengerImpl.subscribe()

    private void run() {
        try {
            Messenger mng = new MessengerImpl();
            mng.start();
            for (String a : addrs) {
                mng.subscribe(a);
            }
            int ct = 0;
            boolean done = false;
            while (!done) {
                mng.recv();
View Full Code Here

Examples of org.apache.servicemix.wsn.client.NotificationBroker.subscribe()

    protected Object startSubscription() {
        Subscription subscription = null;
        try {
            NotificationBroker broker = new NotificationBroker(getContext());
            broker.setResolver(AbstractWSAClient.resolveWSA(publisherReference));
            subscription = broker.subscribe(AbstractWSAClient.createWSA(notificationBrokerAddress), "noTopic", null);
        } catch (JBIException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (JAXBException e) {
            // TODO Auto-generated catch block
View Full Code Here

Examples of org.apache.tomcat.bayeux.ChannelImpl.subscribe()

                List<Channel> channels = getTomcatBayeux().getChannels();
                Iterator<Channel> it = channels.iterator();
                while (it.hasNext()) {
                    ChannelImpl ch = (ChannelImpl)it.next();
                    if (ch.matches(subscription)) {
                        ch.subscribe(client);
                        subscribed = true;
                    }
                }
            }else {
                ChannelImpl ch = (ChannelImpl)getTomcatBayeux().getChannel(subscription,true);
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.model.LeafNode.subscribe()

    public void testDelete() throws Exception {
        String testNode = "test";
        LeafNode node = new LeafNode(serviceConfiguration, testNode, client);
        root.add(node);
       
        node.subscribe("someid", client); // make the owner subscriber
        node.subscribe("otherid1", new EntityImpl("yoda", "starwars.com", "spaceship"));
        node.subscribe("otherid2", new EntityImpl("r2d2", "starwars.com", "desert"));
        node.subscribe("otherid3", new EntityImpl("anakin", "starwars.com", "deathstar"));
       
        assertNotNull(root.find(testNode));
View Full Code Here

Examples of org.apache.ws.muws.interop.client.ResourceStub.subscribe()

   *
   */
  private void requestNotificationFromEpr() throws FaultException {
    ResourceStub resource = new ResourceStub( wsEpr );
    resource.addObserver(observer);
    resource.subscribe(listenerURL,STATUS_TOPIC_QNAME);
    resource.deleteObserver(observer);
  }

  /**
   * @throws FaultException
View Full Code Here

Examples of org.apache.ws.notification.NotificationManager.subscribe()

   {
      NotificationManager notificationManager = getNotificationManager(  );

      if ( notificationManager != null )
      {
         return notificationManager.subscribe( subscribeRequest );
      }

      return null;
   }
View Full Code Here

Examples of org.axonframework.commandhandling.CommandBus.subscribe()

        // we need to configure the repository
        EventSourcingRepository<ToDoItem> repository = new EventSourcingRepository<ToDoItem>(ToDoItem.class, eventStore);
        repository.setEventBus(eventBus);

        // Register the Command Handlers with the command bus by subscribing to the name of the command
        commandBus.subscribe(CreateToDoItemCommand.class.getName(),
                new CreateToDoCommandHandler(repository));
        commandBus.subscribe(MarkCompletedCommand.class.getName(),
                new MarkCompletedCommandHandler(repository));

        // We register an event listener to see which events are created
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.