I can't speak specifically for CORBA, but you can most certainly access EJBs
in an Orion server from stand-alone Java clients (not servlets). The correct
method of obtaining the JNDI context when operating outside the container is
not well documented, but I worked it out as follows:

Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.rmi.RMIInitialContextFactory");
ht.put(Context.PROVIDER_URL, "ormi://MyServer/MyApplication");
ht.put(Context.SECURITY_PRINCIPAL, "admin");
ht.put(Context.SECURITY_CREDENTIALS, "abc123");
Context ctx = new InitialContext( ht );


----- Original Message -----
From: "Lachezar Dobrev" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, April 19, 2001 10:32 AM
Subject: How to connect to an Orion Ejb from outside?


>    Until now I have developed EJBs for use with a CORBA broker.
>    However, I did not see such a thing in ORION.
>    Question: How (and can I) do I adress EJBs from my outside-of-orion
> applications?
>    I was able to create a couple of basic EJBs. Well... Had to move them
to
> ORION. My problem is, that my apps now cannot adress these EJBs. Is it
> possible at all, or not? If yes, than how, 'cause I saw nothing on this
> subject neither in the documentation, nor in the tutorials.
>
>    Thanks in advance.
>    Lachezar.
>
>
>


Reply via email to