Package mireka.pop.store

Examples of mireka.pop.store.MaildropAppender.rollback()


            try {
                out = appender.getOutputStream();
            } catch (LocalMailSystemException e) {
                logger.error("Cannot accept mail because of a "
                        + "maildrop failure", e);
                appender.rollback();
                throw new RejectExceptionExt(e.errorStatus());
            }
            try {
                out.write(constructReturnPathLine(mail));
                mail.mailData.writeTo(out);
View Full Code Here


            } catch (IOException e) {
                logger.error(
                        "Cannot accept mail because of an IO error "
                                + "occured while the mail was written into the maildrop",
                        e);
                appender.rollback();
                throw new RejectExceptionExt(
                        EnhancedStatus.TRANSIENT_LOCAL_ERROR_IN_PROCESSING);
            }
            try {
                appender.commit();
View Full Code Here

            try {
                OutputStream outputStream = appender.getOutputStream();
                message.writeTo(outputStream);
                appender.commit();
            } catch (IOException e) {
                appender.rollback();
                throw e;
            } catch (MessagingException e) {
                appender.rollback();
                throw e;
            }
View Full Code Here

                appender.commit();
            } catch (IOException e) {
                appender.rollback();
                throw e;
            } catch (MessagingException e) {
                appender.rollback();
                throw e;
            }
        } finally {
            maildropRepository.releaseMaildrop(maildrop);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.