// actual cert or a native query w SqlResultSetMapping..
CertificateData cd = CertificateData.findByFingerprint(entityManager, fingerprint);
if (cd == null) {
throw new FinderException();
}
try {
published = publisherQueueSession.storeCertificateNonTransactional(publisher, admin, cd.getCertificate(), username, password, userDataDN,
cd.getCaFingerprint(), cd.getStatus(), cd.getType(), cd.getRevocationDate(), cd.getRevocationReason(), cd.getTag(), cd
.getCertificateProfileId(), cd.getUpdateTime(), ei);
} catch (EJBException e) {
final Throwable t = e.getCause();
if (t instanceof PublisherException) {
throw (PublisherException)t;
} else {
throw e;
}
}
} else {
String msg = intres.getLocalizedMessage("publisher.nopublisher", publisherId);
log.info(msg);
}
} else if (publishType == PublisherConst.PUBLISH_TYPE_CRL) {
if (log.isDebugEnabled()) {
log.debug("Publishing CRL");
}
CRLData crlData = CRLData.findByFingerprint(entityManager, fingerprint);
if (crlData == null) {
throw new FinderException();
}
published = publisherQueueSession.storeCRLNonTransactional(publisher, admin, crlData.getCRLBytes(), crlData.getCaFingerprint(), crlData.getCrlNumber(), userDataDN);
} else {
String msg = intres.getLocalizedMessage("publisher.unknowntype", publishType);
log.error(msg);