/*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2022 Free Software Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
import java.util.Locale;
import javax.ejb.EJB;
import javax.ejb.Stateless;
-import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
+import org.mxchange.jjobs.enterprise.BaseJobsEnterpriseBean;
import org.mxchange.jusercore.exceptions.UserNotFoundException;
import org.mxchange.jusercore.exceptions.UserStatusConfirmedException;
import org.mxchange.jusercore.exceptions.UserStatusLockedException;
* @author Roland Häder<roland@mxchange.org>
*/
@Stateless (name = "userResendConfirmationLink", description = "A bean resending confirmation links")
-public class JobsResendLinkSessionBean extends BaseJobsDatabaseBean implements ResendLinkSessionBeanRemote {
+public class JobsResendLinkSessionBean extends BaseJobsEnterpriseBean implements ResendLinkSessionBeanRemote {
/**
* Serial number
/**
* Registration bean
*/
- @EJB
+ @EJB (lookup = "java:global/jjobs-ejb/userRegistration!org.mxchange.juserlogincore.model.user.register.UserRegistrationSessionBeanRemote")
private UserRegistrationSessionBeanRemote registerBean;
/**
* Regular user bean
*/
- @EJB
+ @EJB (lookup = "java:global/jjobs-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote")
private UserSessionBeanRemote userBean;
/**
*/
public JobsResendLinkSessionBean () {
// Call super constructor
- super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N
+ super("jms/jjobs-queue-factory", "jms/jjobs-email-queue"); //NOI18N
}
@Override
}
// Get new registration key
- String confirmationKey = this.registerBean.generateConfirmationKey(user);
+ final String confirmationKey = this.registerBean.generateConfirmationKey(user);
// Debug message
this.getLoggerBeanLocal().logDebug(MessageFormat.format("{0}.resendConfirmationLink: confirmationKey={1}", this.getClass().getSimpleName(), confirmationKey)); //NOI18N
// Get managed instance
- User managedUser = this.getEntityManager().find(LoginUser.class, user.getUserId());
+ final User managedUser = this.getEntityManager().find(LoginUser.class, user.getUserId());
// Set it in user
managedUser.setUserConfirmKey(confirmationKey);