@@ -0,0 +1,2484 @@
+/**%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements.  See the NOTICE file distributed with%0A * this work for additional information regarding copyright ownership.%0A * The ASF licenses this file to You under the Apache License, Version 2.0%0A * (the %22License%22); you may not use this file except in compliance with%0A * the License.  You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.apache.activemq.broker.ft;%0A%0Aimport java.net.URI;%0A%0Aimport org.apache.activemq.ActiveMQConnectionFactory;%0Aimport org.apache.activemq.broker.BrokerService;%0Aimport org.apache.activemq.broker.TransportConnector;%0A%0A%0Apublic class QueueMasterSlaveSingleUrlTest extends QueueMasterSlaveTest %7B%0A    private final String brokerUrl = %22tcp://localhost:62001%22;%0A    private final String singleUriString = %22failover://(%22 + brokerUrl +%22)?randomize=false%22;%0A%0A    protected ActiveMQConnectionFactory createConnectionFactory() throws Exception %7B%0A        return new ActiveMQConnectionFactory(singleUriString);%0A    %7D%0A%0A    protected void createMaster() throws Exception %7B%0A        master = new BrokerService();%0A        master.setBrokerName(%22shared%22);%0A        master.addConnector(brokerUrl);%0A        master.start();%0A    %7D%0A    %0A    protected void createSlave() throws Exception %7B      %0A        new Thread(new Runnable() %7B%0A            public void run() %7B%0A                try %7B%0A                    BrokerService broker = new BrokerService();%0A                    broker.setBrokerName(%22shared%22);%0A                    // add transport as a service so that it is bound on start, after store started                %0A                    final TransportConnector tConnector = new TransportConnector();%0A                    tConnector.setUri(new URI(brokerUrl));%0A                    broker.addConnector(tConnector);%0A                    %0A                    broker.start();%0A                    slave.set(broker);%0A                    slaveStarted.countDown();%0A                %7D catch (Exception e) %7B%0A                    e.printStackTrace();%0A                %7D%0A            %7D%0A%0A        %7D).start();%0A    %7D%0A        %0A%7D%0A

validate shared file system master/slave with single shared brokerurl