protected void dispatchInitialMessage(Message message, Destination regionDestination, ConnectionContext context, SubscriptionRecovery sub) { try { ActiveMQMessage activeMessage = ActiveMQMessageTransformation.transformMessage(message, null); ActiveMQDestination destination = activeMessage.getDestination(); if (destination == null) { destination = sub.getActiveMQDestination(); activeMessage.setDestination(destination); } activeMessage.setRegionDestination(regionDestination); configure(activeMessage); sub.addRecoveredMessage(context, activeMessage); } catch (Throwable e) { LOG.warn("Failed to dispatch initial message: {} into subscription. Reason: ", message, e); } }
protected void dispatchInitialMessage(Message message, Destination regionDestination, ConnectionContext context, SubscriptionRecovery sub) { try { ActiveMQMessage activeMessage = ActiveMQMessageTransformation.transformMessage(message, null); ActiveMQDestination destination = activeMessage.getDestination(); if (destination == null) { destination = sub.getActiveMQDestination(); activeMessage.setDestination(destination); } activeMessage.setRegionDestination(regionDestination); configure(activeMessage); sub.addRecoveredMessage(context, activeMessage); } catch (Throwable e) { LOG.warn("Failed to dispatch initial message: {} into subscription. Reason: ", message, e); } }
protected void dispatchInitialMessage(Message message, Destination regionDestination, ConnectionContext context, SubscriptionRecovery sub) { try { ActiveMQMessage activeMessage = ActiveMQMessageTransformation.transformMessage(message, null); ActiveMQDestination destination = activeMessage.getDestination(); if (destination == null) { destination = sub.getActiveMQDestination(); activeMessage.setDestination(destination); } activeMessage.setRegionDestination(regionDestination); configure(activeMessage); sub.addRecoveredMessage(context, activeMessage); } catch (Throwable e) { LOG.warn("Failed to dispatch initial message: {} into subscription. Reason: ", message, e); } }
protected void dispatchInitialMessage(Message message, Destination regionDestination, ConnectionContext context, SubscriptionRecovery sub) { try { ActiveMQMessage activeMessage = ActiveMQMessageTransformation.transformMessage(message, null); ActiveMQDestination destination = activeMessage.getDestination(); if (destination == null) { destination = sub.getActiveMQDestination(); activeMessage.setDestination(destination); } activeMessage.setRegionDestination(regionDestination); configure(activeMessage); sub.addRecoveredMessage(context, activeMessage); } catch (Throwable e) { LOG.warn("Failed to dispatch initial message: " + message + " into subscription. Reason: " + e, e); } }
protected void dispatchInitialMessage(Message message, Destination regionDestination, ConnectionContext context, SubscriptionRecovery sub) { try { ActiveMQMessage activeMessage = ActiveMQMessageTransformation.transformMessage(message, null); ActiveMQDestination destination = activeMessage.getDestination(); if (destination == null) { destination = sub.getActiveMQDestination(); activeMessage.setDestination(destination); } activeMessage.setRegionDestination(regionDestination); configure(activeMessage); sub.addRecoveredMessage(context, activeMessage); } catch (Throwable e) { LOG.warn("Failed to dispatch initial message: {} into subscription. Reason: ", message, e); } }