Java Code Examples for org.apache.activemq.broker.BrokerService#setDestinationInterceptors()
The following examples show how to use
org.apache.activemq.broker.BrokerService#setDestinationInterceptors() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ThreeBrokerVirtualTopicNetworkTest.java From activemq-artemis with Apache License 2.0 | 5 votes |
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; }
Example 2
Source File: TwoBrokerVirtualDestDinamicallyIncludedDestTest.java From activemq-artemis with Apache License 2.0 | 5 votes |
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; }
Example 3
Source File: SingleBrokerVirtualDestinationsWithWildcardTest.java From activemq-artemis with Apache License 2.0 | 5 votes |
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; }
Example 4
Source File: AbstractTwoBrokerNetworkConnectorWildcardIncludedDestinationTestSupport.java From activemq-artemis with Apache License 2.0 | 5 votes |
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; }