@TransactionAttribute(TransactionAttributeType.SUPPORTS)
@Override
public String testAllConnections() {
log.trace(">testAllPublishers");
String returnval = "";
Admin admin = Admin.getInternalAdmin();
Iterator<PublisherData> i = PublisherData.findAll(entityManager).iterator();
while (i.hasNext()) {
PublisherData pdl = i.next();
String name = pdl.getName();
try {
getPublisher(pdl).testConnection(admin);
} catch (PublisherConnectionException pe) {
String msg = intres.getLocalizedMessage("publisher.errortestpublisher", name);
logSession.log(admin, admin.getCaId(), LogConstants.MODULE_CA, new java.util.Date(), null, null, LogConstants.EVENT_ERROR_PUBLISHERDATA,
msg, pe);
returnval += "\n" + msg;
}
}
log.trace("<testAllPublishers");