use of org.apache.activemq.broker.region.virtual.VirtualTopic in project activemq-artemis by apache.
the class SingleBrokerVirtualDestinationsWithWildcardTest method createAndConfigureBroker.
private BrokerService createAndConfigureBroker(URI uri) throws Exception {
BrokerService broker = createBroker(uri);
configurePersistenceAdapter(broker);
// make all topics virtual and consumers use the default prefix
VirtualDestinationInterceptor virtualDestinationInterceptor = new VirtualDestinationInterceptor();
virtualDestinationInterceptor.setVirtualDestinations(new VirtualDestination[] { new VirtualTopic() });
DestinationInterceptor[] destinationInterceptors = new DestinationInterceptor[] { virtualDestinationInterceptor };
broker.setDestinationInterceptors(destinationInterceptors);
return broker;
}
use of org.apache.activemq.broker.region.virtual.VirtualTopic in project activemq-artemis by apache.
the class TwoBrokerVirtualDestDinamicallyIncludedDestTest method createAndConfigureBroker.
private BrokerService createAndConfigureBroker(URI uri) throws Exception {
BrokerService broker = createBroker(uri);
configurePersistenceAdapter(broker);
// make all topics virtual and consumers use the default prefix
VirtualDestinationInterceptor virtualDestinationInterceptor = new VirtualDestinationInterceptor();
VirtualTopic vTopic = new VirtualTopic();
vTopic.setLocal(true);
virtualDestinationInterceptor.setVirtualDestinations(new VirtualDestination[] { vTopic });
DestinationInterceptor[] destinationInterceptors = new DestinationInterceptor[] { virtualDestinationInterceptor };
broker.setDestinationInterceptors(destinationInterceptors);
return broker;
}
use of org.apache.activemq.broker.region.virtual.VirtualTopic in project activemq-artemis by apache.
the class AbstractTwoBrokerNetworkConnectorWildcardIncludedDestinationTestSupport method createAndConfigureBroker.
private BrokerService createAndConfigureBroker(URI uri) throws Exception {
BrokerService broker = createBroker(uri);
configurePersistenceAdapter(broker);
// make all topics virtual and consumers use the default prefix
VirtualDestinationInterceptor virtualDestinationInterceptor = new VirtualDestinationInterceptor();
virtualDestinationInterceptor.setVirtualDestinations(new VirtualDestination[] { new VirtualTopic() });
DestinationInterceptor[] destinationInterceptors = new DestinationInterceptor[] { virtualDestinationInterceptor };
broker.setDestinationInterceptors(destinationInterceptors);
return broker;
}
use of org.apache.activemq.broker.region.virtual.VirtualTopic in project activemq-artemis by apache.
the class ThreeBrokerVirtualTopicNetworkTest method createAndConfigureBroker.
private BrokerService createAndConfigureBroker(URI uri) throws Exception {
BrokerService broker = createBroker(uri);
configurePersistenceAdapter(broker);
// make all topics virtual and consumers use the default prefix
VirtualDestinationInterceptor virtualDestinationInterceptor = new VirtualDestinationInterceptor();
virtualDestinationInterceptor.setVirtualDestinations(new VirtualDestination[] { new VirtualTopic() });
DestinationInterceptor[] destinationInterceptors = new DestinationInterceptor[] { virtualDestinationInterceptor };
broker.setDestinationInterceptors(destinationInterceptors);
return broker;
}
Aggregations