use of org.apache.activemq.artemis.core.server.impl.RoutingContextImpl in project activemq-artemis by apache.
the class MQTTRetainMessageManager method sendToQueue.
private void sendToQueue(Message message, Queue queue, Transaction tx) throws Exception {
RoutingContext context = new RoutingContextImpl(tx);
queue.route(message, context);
session.getServer().getPostOffice().processRoute(message, context, false);
}
use of org.apache.activemq.artemis.core.server.impl.RoutingContextImpl in project activemq-artemis by apache.
the class PageCursorStressTest method generateCTX.
private RoutingContextImpl generateCTX(Transaction tx) {
RoutingContextImpl ctx = new RoutingContextImpl(tx);
ctx.addQueue(ADDRESS, queue);
for (Queue q : this.queueList) {
ctx.addQueue(ADDRESS, q);
}
return ctx;
}
Aggregations