package appointment.business;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.ejb.Stateful;
import appointment.objects.User;
@Stateful()
public class ISessionManagement implements Serializable, ISessionManagementLocal {
private static final long serialVersionUID = 1L;
private User _user;
public ISessionManagement() {
}
public User getCurrentUser() {
return _user;
}
public void setCurrentUser(User user) {
_user = user;
}
@PostConstruct()
public void postConstruct() {
_user = new User("Donald", "asdasd@asdasd.de", "123");
System.out.println("ISessionManagement.postConstruct()");
}
}