Source:
private void createRetroactiveResources(final SimpleString retroactiveAddressName, final long retroactiveMessageCount, final boolean reload) throws Exception { String prefix = server.getConfiguration().getInternalNamingPrefix(); final SimpleString internalAddressName = ResourceNames.getRetroactiveResourceName(prefix, retroactiveAddressName, ResourceNames.ADDRESS); final SimpleString internalQueueName = ResourceNames.getRetroactiveResourceName(prefix, retroactiveAddressName, ResourceNames.QUEUE); final SimpleString internalDivertName = ResourceNames.getRetroactiveResourceName(prefix, retroactiveAddressName, ResourceNames.DIVERT); if (!reload) { AddressInfo addressInfo = new AddressInfo(internalAddressName).addRoutingType(RoutingType.ANYCAST).setInternal(true); addAddressInfo(addressInfo); server.createQueue(internalAddressName, RoutingType.ANYCAST, internalQueueName, null, null, true, false, false, false, false, 0, false, false, false, 0, null, false, null, false, 0, 0L, false, 0L, 0L, false, retroactiveMessageCount); } server.deployDivert(new DivertConfiguration() .setName(internalDivertName.toString()) .setAddress(retroactiveAddressName.toString()) .setExclusive(false) .setForwardingAddress(internalAddressName.toString()) .setRoutingType(ComponentConfigurationRoutingType.STRIP)); }

Target:
private void createRetroactiveResources(final SimpleString retroactiveAddressName, final long retroactiveMessageCount, final boolean reload) throws Exception { String prefix = server.getInternalNamingPrefix(); String delimiter = server.getConfiguration().getWildcardConfiguration().getDelimiterString(); final SimpleString internalAddressName = ResourceNames.getRetroactiveResourceAddressName(prefix, delimiter, retroactiveAddressName); final SimpleString internalAnycastQueueName = ResourceNames.getRetroactiveResourceQueueName(prefix, delimiter, retroactiveAddressName, RoutingType.ANYCAST); final SimpleString internalMulticastQueueName = ResourceNames.getRetroactiveResourceQueueName(prefix, delimiter, retroactiveAddressName, RoutingType.MULTICAST); final SimpleString internalDivertName = ResourceNames.getRetroactiveResourceDivertName(prefix, delimiter, retroactiveAddressName); if (!reload) { AddressInfo addressInfo = new AddressInfo(internalAddressName) .addRoutingType(RoutingType.MULTICAST) .addRoutingType(RoutingType.ANYCAST) .setInternal(false); addAddressInfo(addressInfo); AddressSettings addressSettings = addressSettingsRepository.getMatch(internalAddressName.toString()); server.createQueue(internalAddressName, RoutingType.MULTICAST, internalMulticastQueueName, null, null, true, false, false, false, false, 0, false, false, false, addressSettings.getDefaultGroupBuckets(), null, addressSettings.isDefaultLastValueQueue(), addressSettings.getDefaultLastValueKey(), false, 0, 0L, false, 0L, 0L, false, retroactiveMessageCount); server.createQueue(internalAddressName, RoutingType.ANYCAST, internalAnycastQueueName, null, null, true, false, false, false, false, 0, false, false, false, addressSettings.getDefaultGroupBuckets(), null, addressSettings.isDefaultLastValueQueue(), addressSettings.getDefaultLastValueKey(), false, 0, 0L, false, 0L, 0L, false, retroactiveMessageCount); } server.deployDivert(new DivertConfiguration() .setName(internalDivertName.toString()) .setAddress(retroactiveAddressName.toString()) .setExclusive(false) .setForwardingAddress(internalAddressName.toString()) .setRoutingType(ComponentConfigurationRoutingType.PASS)); }