use of com.cognifide.actions.api.ActionSendException in project CQ-Actions by Cognifide.
the class Resender method run.
@Override
public void run() {
ResourceResolver resolver = null;
try {
resolver = resolverFactory.getAdministrativeResourceResolver(null);
final Resource parent = resolver.getResource(MessagePersistenceService.SERIALIZED_ACTIONS);
if (parent == null) {
return;
}
for (final Resource child : parent.getChildren()) {
resend(child);
}
resolver.commit();
} catch (LoginException | PersistenceException e) {
LOG.error("Can't resend", e);
} catch (ActionSendException e) {
LOG.error("Can't resend", e);
} finally {
if (resolver != null) {
resolver.close();
}
}
}
Aggregations