import javax.jms.MessageListener;
import javax.jms.ObjectMessage;
import javax.mail.MessagingException;
+import javax.naming.NamingException;
import org.mxchange.addressbook.database.BaseAddressbookDatabaseBean;
import org.mxchange.jmailee.model.delivery.wrapper.WrapableEmailDelivery;
/**
* Default constructor
+ * <p>
+ * @throws javax.naming.NamingException If a JNDI name could not be found
*/
- public AddressbookEmailDeliveryMessageBean () {
+ public AddressbookEmailDeliveryMessageBean () throws NamingException {
// Call super constructor
super();
if (wrapper.getLocale() == null) {
// Throw NPE
throw new NullPointerException("wrapper.locale is null"); //NOI18N
- } else if (wrapper.getRecipient() == null) {
+ } else if (wrapper.getRecipientAddress()== null) {
// Throw again ...
- throw new NullPointerException("wrapper.recipient is null"); //NOI18N
+ throw new NullPointerException("wrapper.recipientAddress is null"); //NOI18N
} else if (wrapper.getSubjectLine() == null) {
// ... and again
throw new NullPointerException("wrapper.subjectLine is null"); //NOI18N