Package org.apache.servicemix.examples.cxf.base

Examples of org.apache.servicemix.examples.cxf.base.Email


    public void init(){
        random = new Random();
        spam = new Email[3];
        String youradress = "you@mail.com";
        spam[0] = new Email("free@cookieman.com",youradress,"Free Cookies!","Send us 10 dollar for a FREE basket full of delicious cookies!");
        spam[1] = new Email("youwon@lottery.com",youradress,"You are a WINNER!","You won the jackpot 100.000.000, please claim your price at our HQ in Atlantis.");
        spam[2] = new Email("gold@theshinymarket.com",youradress,"Buy cheap gold now!","Please send us your credit card number and receive gold at very cheap prices!");
    }
View Full Code Here


        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
View Full Code Here

TOP

Related Classes of org.apache.servicemix.examples.cxf.base.Email

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.