// Set up the ActiveMQ JMS Components
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616");
// Note we can explicit name of the component
context.addComponent("test-jms", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
context.addRoutes(new Client());
ProducerTemplate template = context.createProducerTemplate();
context.start();
// START SNIPPET: sending