remoteBroker = new BrokerContainerImpl("remoteBroker");
remoteBroker.addConnector(ActiveMQConnection.DEFAULT_URL);
remoteBroker.start();
ActiveMQConnectionFactory fac = new ActiveMQConnectionFactory("remote://" + URL + "?brokerName=receiver");
receiver = fac.createConnection();
receiver.setClientID(new IdGenerator().generateId());
receiver.start();
Session s = receiver.createSession(false,Session.AUTO_ACKNOWLEDGE);
Topic destination = s.createTopic(getClass().getName());
consumer = s.createDurableSubscriber(destination, destination.toString());