}
final URI finalLocation = new URI("vm://" + broker);
final String finalBroker = broker;
final String finalGroup = group;
VMTransportFactory rc = new VMTransportFactory() {
public Transport doConnect(URI ignore) throws Exception {
return super.doConnect(finalLocation);
};
public Transport doCompositeConnect(URI ignore) throws Exception {
return super.doCompositeConnect(finalLocation);
};
};
rc.setBrokerFactoryHandler(new BrokerFactoryHandler() {
public BrokerService createBroker(URI brokerURI) throws Exception {
BrokerService service = new BrokerService();
IntrospectionSupport.setProperties(service, brokerOptions);
service.setBrokerName(finalBroker);
TransportConnector c = service.addConnector("tcp://localhost:0");