@Override
    public Connection crearConexion() {
        try {   
            InitialContext initialContext=new InitialContext();
            DataSource dataSource=(DataSource) initialContext.lookup("java:comp/env/jdbc/" + Conexion.getDatabaseName());
            Connection connection=dataSource.getConnection();
            return connection;
        } catch (NamingException | SQLException ex) {
            throw new RuntimeException(ex);
        }
    }