A simple publisher sends messages to a broker in a fire-and-forget manner.
34353637383940
brokerSetup = new TestBrokerSetup(); connectionFactory = new SingleConnectionFactory(); connectionFactory.setHost(brokerSetup.getHost()); connectionFactory.setPort(brokerSetup.getPort()); publisher = new SimplePublisher(connectionFactory); }