public void setLastAcknowledgedMessageID(Subscription subscription, MessageIdentity messageIdentity) throws JMSException {
messageStore.setLastAcknowledgedMessageIdentity(subscription.getPersistentKey(), messageIdentity);
}
public void recoverSubscription(final Subscription subscription) throws JMSException {
messageStore.recoverSubscription(subscription.getPersistentKey(), lastMessageIdentity, new RecoveryListener() {
public void recoverMessage(MessageIdentity messageIdentity) throws JMSException {
subscription.addMessage(DurableTopicMessageContainer.this, getMessage(messageIdentity));
}
});
}