Hello,

is there a typo in provider URL? Should be "ormi:..." instead of "orim:...".

stas@

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of James Ho
> Sent: Sunday, October 08, 2000 11:10 AM
> To: Orion-Interest
> Subject: How does orionconsole do it?? (remote EJBs)
>
>
> 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.R
MIInitialContextFactory");
>       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