+++ /dev/null
-/*
- * 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 <http://www.gnu.org/licenses/>.
- */
-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
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@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.
- * <p>
- * @param emailWrapper Deliverable mail wrapper
- *
- * @throws MessagingException If something bad happened
- */
- void sendDeliverableMail (final WrapableEmailDelivery emailWrapper) throws MessagingException;
-
-}
--- /dev/null
+/*
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+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.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@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.
+ * <p>
+ * @param emailWrapper Deliverable mail wrapper
+ *
+ * @throws MessagingException If something bad happened
+ */
+ void sendDeliverableMail (final WrapableEmailDelivery emailWrapper) throws MessagingException;
+
+}