Hi everyone,

I am currently trying to access an remote EJB from a servlet.  I had
this, in my code..


env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory");
        env.put(Context.PROVIDER_URL,"orim://remoteserver/stamp");
        env.put(Context.SECURITY_PRINCIPAL,"admin");
        env.put(Context.SECURITY_CREDENTIALS,"123");
        context = new InitialContext(env);

When I tried to lookup the EJB, it kept on saying 'domain was null'. 
WHat happened was that it actually tried to look for 'stamp' in the
local orion server (and of course failed).

What I wanted to do, is basically like orionconsole.jar, let u add a
server in, and then search the EJBs on the server, and mine is
web-based.  How does orionconsole do it?  How come the orion console
doesn't need the remote EJBs' home/remote interface??  I have been
having a lot of problem with servlets accessing remote EJBs.. :(

Any help much appreciated.

Thanks heaps...

Regards, James.

Reply via email to