Examples of NotificationBroker


Examples of org.apache.cxf.wsn.client.NotificationBroker

            createPullPointServer.setAddress("http://localhost:" + port1 + "/wsn/CreatePullPoint");
            createPullPointServer.init();
        }


        notificationBroker = new NotificationBroker("http://localhost:" + port1 + "/wsn/NotificationBroker");
        createPullPoint = new CreatePullPoint("http://localhost:" + port1 + "/wsn/CreatePullPoint");
    }
View Full Code Here

Examples of org.apache.cxf.wsn.client.NotificationBroker

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public void setNotificationBroker(ServiceReference reference) {
        this.notificationBroker = new NotificationBroker((String)reference.getProperty("address"),Email.class);
    }
View Full Code Here

Examples of org.apache.cxf.wsn.client.NotificationBroker

            }
        }, "http://localhost:9001/MyConsumer");


        // Create a subscription for a Topic on the broker
        NotificationBroker notificationBroker
                = new NotificationBroker("http://localhost:" + wsnPort + "/wsn/NotificationBroker",Email.class);
        Subscription subscription = notificationBroker.subscribe(consumer, topic);

        // Create new email object to send
        Email mail =  new Email("standalone@client.com","you@gotmail.com","This is the standalone client speaking","This thing works!");

        // Send a notification on the Topic
        notificationBroker.notify(topic,mail);

        // Just sleep for a bit to make sure the notification gets delivered
        Thread.sleep(5000);

        // Cleanup and exit
View Full Code Here

Examples of org.apache.cxf.wsn.client.NotificationBroker

    public void setEndPoint(String endPoint) {
        this.endPoint = endPoint;
    }

    public void setNotificationBroker(ServiceReference reference) {
        this.notificationBroker = new NotificationBroker((String)reference.getProperty("address"));
    }
View Full Code Here

Examples of org.apache.cxf.wsn.client.NotificationBroker

            createPullPointServer.setAddress("http://localhost:" + port1 + "/wsn/CreatePullPoint");
            createPullPointServer.init();
        }


        notificationBroker = new NotificationBroker("http://localhost:" + port1 + "/wsn/NotificationBroker");
        createPullPoint = new CreatePullPoint("http://localhost:" + port1 + "/wsn/CreatePullPoint");
    }
View Full Code Here

Examples of org.apache.cxf.wsn.client.NotificationBroker

            }
        }, "http://localhost:9001/MyConsumer");
       
       
        // Create a subscription for a Topic on the broker
        NotificationBroker notificationBroker
            = new NotificationBroker("http://localhost:" + wsnPort + "/wsn/NotificationBroker");
        Subscription subscription = notificationBroker.subscribe(consumer, "MyTopic");


        // Send a notification on the Topic
        notificationBroker.notify("MyTopic",
                                  new JAXBElement<String>(new QName("urn:test:org", "foo"),
                                          String.class, "Hello World!"));
       
        // Just sleep for a bit to make sure the notification gets delivered
        Thread.sleep(5000);
View Full Code Here

Examples of org.apache.cxf.wsn.client.NotificationBroker

            createPullPointServer.setAddress("http://localhost:" + port1 + "/wsn/CreatePullPoint");
            createPullPointServer.init();
        }


        notificationBroker = new NotificationBroker("http://localhost:" + port1 + "/wsn/NotificationBroker");
        createPullPoint = new CreatePullPoint("http://localhost:" + port1 + "/wsn/CreatePullPoint");
    }
View Full Code Here

Examples of org.apache.cxf.wsn.client.NotificationBroker

            createPullPointServer.setAddress("http://localhost:" + port1 + "/wsn/CreatePullPoint");
            createPullPointServer.init();
        }


        notificationBroker = new NotificationBroker("http://localhost:" + port1 + "/wsn/NotificationBroker");
        createPullPoint = new CreatePullPoint("http://localhost:" + port1 + "/wsn/CreatePullPoint");
    }
View Full Code Here

Examples of org.apache.servicemix.wsn.client.NotificationBroker

        ActivationSpec as = new ActivationSpec();
        as.setComponentName("servicemix-wsn2005");
        as.setComponent(wsnComponent);
        jbi.activateComponent(as);

        wsnBroker = new NotificationBroker(jbi);
        wsnCreatePullPoint = new CreatePullPoint(jbi);
    }
View Full Code Here

Examples of org.apache.servicemix.wsn.client.NotificationBroker

     */
    public void start() throws JBIException {
        new Thread() {
            public void run() {
                try {
                    wsnBroker = new NotificationBroker(getContext());
                    String wsaAddress = getService().getNamespaceURI() + "/" + getService().getLocalPart() + "/"
                            + subscriptionEndpoint;
                    wsnBroker.registerPublisher(AbstractWSAClient.createWSA(wsaAddress), topic, demand);
                } catch (Exception e) {
                    LOG.error("Could not create wsn client", e);
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.