J'ai développé un client java se qui appelle des beans session sur un serveur glassfish v3. Je me connecte à l'interface distante du bean comme ça.GlassFish Démarrage du client Java SE - Aucune exception de contexte initiale
context = new InitialContext();
em = (ICrudService) context.lookup("java:global/BackITServer/CrudServiceImpl");
Cela fonctionne très bien depuis l'intérieur d'eclipse (client gf sur le chemin de construction). Quand j'exporter mon projet comme un pot et runnable appelle sur la console avec
java -jar BackItClient.jar
je reçois un NoInitialContextException.
javax.naming.NoInitialContextException: Need to specify class name
in enviroment or system property, or as an applet parameter, or in an application resource file
MMMM. J'apprécierais beaucoup de l'aide.
Merci Vous
Salutations Marcel
PS: Dois-je vraiment emballer tous les pots qui gf client fait référence dans mon pot?