@Override
public void init() throws ServletException {
try {
Context init = new InitialContext();
DataSource dataSource = (DataSource) init.lookup("java:comp/env/jdbc/iphitosbd");
DisciplineDAO discDAO = new DisciplineDAO(dataSource);
getServletContext().setAttribute("disciplines",discDAO.getDisciplines());
} catch (Exception ex) {
Logger.getLogger(InitListeDisciplineServlet.class.getName()).log(Level.SEVERE, null, ex);
throw new ServletException("problème lors de l'initialisation de la source de données ",
ex);
}