Package org.springframework.messaging

Examples of org.springframework.messaging.MessageChannel.send()


    public void testTwitterChannel(){
        log.debug("testTwitterChannel");
        MessageChannel twitterOutChannel = this.twitterTransformedChannel;
        Message<String> twitterUpdate = new GenericMessage<String>("22 Testing  http://www.google.es new Twitter samples for #springintegration "+RandomStringUtils.random(2));
        log.debug("twitterOutChannel message "+twitterUpdate.getPayload());
        twitterOutChannel.send(twitterUpdate);
        log.debug("twitterOutChannel");
    }

    @Test
    public void shouldAcceptBites() throws Exception {
View Full Code Here


        //System.out.println("testTwitterChannel");
        MessageChannel twitterOutChannel = this.twitterTransformedChannel;
        Message<String> twitterUpdate = new GenericMessage<String>("Testing new Twitter " +
                "http://www.google.es samples for #springintegration "+RandomStringUtils.random(4));
        //System.out.println("twitterOutChannel message "+twitterUpdate.getPayload());
        twitterOutChannel.send(twitterUpdate);
        //System.out.println("twitterOutChannel");
    }
}
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.