Package backtype.storm.contrib.jms.bolt

Examples of backtype.storm.contrib.jms.bolt.JmsBolt


    // messages.
    builder.setBolt(FINAL_BOLT, new GenericBolt("FINAL_BOLT", true, true), 3).shuffleGrouping(
        INTERMEDIATE_BOLT);
   
    // bolt that subscribes to the intermediate bolt, and publishes to a JMS Topic   
    JmsBolt jmsBolt = new JmsBolt();
    jmsBolt.setJmsProvider(jmsTopicProvider);
   
    // anonymous message producer just calls toString() on the tuple to create a jms message
    jmsBolt.setJmsMessageProducer(new JmsMessageProducer() {
      @Override
      public Message toMessage(Session session, Tuple input) throws JMSException{
        System.out.println("Sending JMS Message:" + input.toString());
        TextMessage tm = session.createTextMessage(input.toString());
        return tm;
View Full Code Here

TOP

Related Classes of backtype.storm.contrib.jms.bolt.JmsBolt

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.