From: Roland Häder Date: Thu, 17 Aug 2017 19:59:09 +0000 (+0200) Subject: updated jar(s) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4426f146998aa7fa365ca321a6531edac7cd41d1;p=jmailer-ee.git updated jar(s) Signed-off-by: Roland Häder --- diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 47124fb..a215338 100644 Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ diff --git a/src/org/mxchange/jmailee/model/delivery/BaseMailerBean.java b/src/org/mxchange/jmailee/model/delivery/BaseMailerBean.java index 5fb6303..737b7af 100644 --- a/src/org/mxchange/jmailee/model/delivery/BaseMailerBean.java +++ b/src/org/mxchange/jmailee/model/delivery/BaseMailerBean.java @@ -40,7 +40,7 @@ import org.mxchange.jmailee.model.delivery.wrapper.WrapableEmailDelivery; *

* @author Roland Häder */ -public abstract class BaseMailerBean extends BaseDatabaseBean implements DeliverableEmailLocal { +public abstract class BaseMailerBean extends BaseDatabaseBean implements DeliverableEmailRemote { /** * Serial number diff --git a/src/org/mxchange/jmailee/model/delivery/DeliverableEmailLocal.java b/src/org/mxchange/jmailee/model/delivery/DeliverableEmailLocal.java deleted file mode 100644 index 42b5148..0000000 --- a/src/org/mxchange/jmailee/model/delivery/DeliverableEmailLocal.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2016, 2017 Roland Häder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jmailee.model.delivery; - -import java.io.Serializable; -import javax.ejb.Local; -import javax.mail.MessagingException; -import org.mxchange.jmailee.model.delivery.wrapper.WrapableEmailDelivery; - -/** - * An interface for email delivery classes - *

- * @author Roland Häder - */ -@Local -public interface DeliverableEmailLocal extends Serializable { - - /** - * Sends given deliverable mail instance. This must have set a template - * name, a recipient address and a subject line set. - *

- * @param emailWrapper Deliverable mail wrapper - * - * @throws MessagingException If something bad happened - */ - void sendDeliverableMail (final WrapableEmailDelivery emailWrapper) throws MessagingException; - -} diff --git a/src/org/mxchange/jmailee/model/delivery/DeliverableEmailRemote.java b/src/org/mxchange/jmailee/model/delivery/DeliverableEmailRemote.java new file mode 100644 index 0000000..537b04a --- /dev/null +++ b/src/org/mxchange/jmailee/model/delivery/DeliverableEmailRemote.java @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2016, 2017 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jmailee.model.delivery; + +import java.io.Serializable; +import javax.ejb.Remote; +import javax.mail.MessagingException; +import org.mxchange.jmailee.model.delivery.wrapper.WrapableEmailDelivery; + +/** + * An interface for email delivery classes. You should not call these methods + * directly from you EJBs as this will be a "synchronous" call causing lag on + * slow mail connections. Instead you want to use the *-mailer-ejb's + * message-queue bean. + *

+ * @author Roland Häder + */ +@Remote +public interface DeliverableEmailRemote extends Serializable { + + /** + * Sends given deliverable mail instance. This must have set a template + * name, a recipient address and a subject line set. + *

+ * @param emailWrapper Deliverable mail wrapper + * + * @throws MessagingException If something bad happened + */ + void sendDeliverableMail (final WrapableEmailDelivery emailWrapper) throws MessagingException; + +}