/*
- * Copyright (C) 2016 quix0r
+ * Copyright (C) 2016 Roland Haeder
*
* 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
package org.mxchange.addressbook.beans.email_address;
import java.text.MessageFormat;
-import java.util.GregorianCalendar;
import java.util.List;
import java.util.Objects;
import javax.enterprise.context.SessionScoped;
Context context = new InitialContext();
// Try to lookup
- this.emailBean = (EmailChangeSessionBeanRemote) context.lookup("ejb/stateless-jjobs-email-change"); //NOI18N
+ this.emailBean = (EmailChangeSessionBeanRemote) context.lookup("ejb/stateless-addressbook-email-change"); //NOI18N
// Init list
this.emailAddresses = this.emailBean.allQueuedAddressesAsList();
}
// Create change object, to save EJB calls, the hash is not generated here
- ChangeableEmailAddress emailAddress = new EmailAddressChange(user, dummyEmail, new GregorianCalendar());
+ ChangeableEmailAddress emailAddress = new EmailAddressChange(user, dummyEmail);
// Call EJB
this.emailBean.enqueueEmailAddressForChange(emailAddress);