* @version $Revision: 1.1.1.1 $
*/
public class ZeroconfDiscoveryTest extends TestCase {
public void test1() throws Exception {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("zeroconf:_activemq.broker.development.");
// use an embedded broker configured via Spring
connectionFactory.setUseEmbeddedBroker(true);
connectionFactory.setBrokerContainerFactory(new SpringBrokerContainerFactory(new ClassPathResource("org/activemq/usecases/receiver-zeroconf.xml")));
Connection connection = connectionFactory.createConnection();
connection.setClientID("Producer1");
connection.start();
// now lets close things down
connection.close();