public void sendData(String data) {
		Assert.hasText(data, "data must not be empty nor null");

		JmsTemplate template = new JmsTemplate(new ActiveMQConnectionFactory("tcp://" + host + ":" + port));
		template.convertAndSend("ec2Test3", data);
	}
Sends data to the JMS broker via TCP.

@param data A string containing the data to send to the JMS broker.
spring-xd-test-fixtures/src/main/java/org/springframework/xd/test/fixtures/JmsSource.java