Hello,
I'm trying to create a simples stand alone EJB 3.0 client but it jut don't work.
The client woks fine when running on Servet class, but when running a class with public static void main it does not work.
I'm doing something like this:
public class SimpleClient {
public static void main(String...args) throws Exception {
Hashtable t = new Hashtable();
t.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
t.put(Context.PROVIDER_URL, "localhost");
Context ic = new InitialContext(t);
ProjectService projetService = (ProjectService) ic.lookup( SaqueHome.class.getName());
}
}
Please use the user forum, not the one dedicated to design