Bonjour,

Pouvez-vous m'aider à corriger ce code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package client;
 
import ejb.Remot;
import ejb.StatelessEJB;
import entite.Facture;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.embeddable.EJBContainer;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
 
 
 
/**
 *
 * @author laleye
 */
 
public class Client {
 
    /**
     * @param args the command line arguments
     */
 
    public static void main(String[] args) throws NamingException {
        // TODO code application logic here
 
        Context initalContext = new InitialContext();
        Remot rm=(Remot) initalContext.lookup("java:global/test/FactureEJB");
        List<Facture> f;
        f=rm.findAllFacture();
 
    }
}
et voici l'erreur que ça me produit
Exception in thread "main" javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial


Je vous remercie pour toute l'aide que vous pourrez m'apporter !