From: Roland Haeder Date: Fri, 1 Apr 2016 18:28:05 +0000 (+0200) Subject: introduced addressbook-mailer which is a mailer class for the addressbook project X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2184f0478f7f9d86e576ceb548c739f9dc0f3342;p=jfinancials-mailer-ejb.git introduced addressbook-mailer which is a mailer class for the addressbook project --- diff --git a/lib/addressbook-mailer.jar b/lib/addressbook-mailer.jar new file mode 100644 index 0000000..a3c369f Binary files /dev/null and b/lib/addressbook-mailer.jar differ diff --git a/lib/jmailer-ee.jar b/lib/jmailer-ee.jar index ec343a7..6874cfe 100644 Binary files a/lib/jmailer-ee.jar and b/lib/jmailer-ee.jar differ diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index ba62e20..42cd133 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -842,6 +842,7 @@ exists or setup the property manually. For example like this: + @@ -856,10 +857,11 @@ exists or setup the property manually. For example like this: + - + @@ -870,8 +872,9 @@ exists or setup the property manually. For example like this: - - + + + @@ -885,6 +888,7 @@ exists or setup the property manually. For example like this: + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties index 566ff5d..0438788 100644 --- a/nbproject/genfiles.properties +++ b/nbproject/genfiles.properties @@ -3,6 +3,6 @@ build.xml.script.CRC32=7d41e0fd build.xml.stylesheet.CRC32=5910fda3@1.51.1 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=4a04b58e -nbproject/build-impl.xml.script.CRC32=5b2dfdcd +nbproject/build-impl.xml.data.CRC32=bc3e0f41 +nbproject/build-impl.xml.script.CRC32=9c66876e nbproject/build-impl.xml.stylesheet.CRC32=6096d939@1.55.1 diff --git a/nbproject/project.properties b/nbproject/project.properties index de73a6c..7a42846 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -21,6 +21,7 @@ dist.jar=${dist.dir}/${jar.name} dist.javadoc.dir=${dist.dir}/javadoc endorsed.classpath= excludes= +file.reference.addressbook-mailer.jar=lib/addressbook-mailer.jar file.reference.jcontacts-business-core.jar=lib/jcontacts-business-core.jar file.reference.jcontacts-core.jar=lib/jcontacts-core.jar file.reference.jcore-logger-lib.jar=lib/jcore-logger-lib.jar @@ -56,6 +57,7 @@ javac.classpath=\ ${file.reference.juser-core.jar}:\ ${file.reference.juser-lib.jar}:\ ${file.reference.jmailer-ee.jar}:\ + ${file.reference.addressbook-mailer.jar}:\ ${reference.addressbook-lib.jar}:\ ${reference.juser-core.jar} javac.compilerargs=-Xlint:unchecked -Xlint:deprecation @@ -97,6 +99,7 @@ run.test.classpath=\ # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): runmain.jvmargs= source.encoding=UTF-8 +source.reference.addressbook-mailer.jar=../addressbook-mailer/src/ source.reference.jcontacts-business-core.jar=../jcontacts-business-core/src/ source.reference.jcontacts-core.jar=../jcontacts-core/src/ source.reference.jcore-logger-lib.jar=../jcore-logger-lib/src/ diff --git a/nbproject/project.xml b/nbproject/project.xml index 098497a..7290bc7 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -15,6 +15,7 @@ file.reference.juser-core.jar file.reference.juser-lib.jar file.reference.jmailer-ee.jar + file.reference.addressbook-mailer.jar reference.addressbook-lib.jar reference.juser-core.jar diff --git a/src/java/org/mxchange/jusercore/model/email_address/AddressbookEmailChangeSessionBean.java b/src/java/org/mxchange/jusercore/model/email_address/AddressbookEmailChangeSessionBean.java index 88d2c6e..09d1ec8 100644 --- a/src/java/org/mxchange/jusercore/model/email_address/AddressbookEmailChangeSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/email_address/AddressbookEmailChangeSessionBean.java @@ -36,9 +36,9 @@ import javax.naming.InitialContext; import javax.naming.NamingException; import javax.persistence.NoResultException; import javax.persistence.Query; +import org.mxchange.addressbook.mailer.model.delivery.AddressbookMailer; +import org.mxchange.addressbook.mailer.model.delivery.DeliverableAddressbookEmail; import org.mxchange.jcoreee.database.BaseDatabaseBean; -import org.mxchange.jmailee.model.delivery.DeliverableEmail; -import org.mxchange.jmailee.model.delivery.Mailer; import org.mxchange.jusercore.model.user.UserSessionBeanRemote; import org.mxchange.jusercore.model.user.UserUtils; @@ -146,9 +146,8 @@ public class AddressbookEmailChangeSessionBean extends BaseDatabaseBean implemen // Persist it //this.getEntityManager().persist(emailChange); - // Get mailer instance - DeliverableEmail mailer = new Mailer(); + DeliverableAddressbookEmail mailer = new AddressbookMailer(); // Send out email change mailer.sendEmailChangeMail(this.messageProducer, this.message, emailChange);