// 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;